home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / sampler5.arc / SAMPLER.DOC
Text File  |  1985-10-12  |  215KB  |  5,797 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                                                   (tm)
  9.                               The SORITEC Sampler
  10.  
  11.                               Version 1.06B-1.67
  12.  
  13.  
  14.  
  15.  
  16.                                      From 
  17.                             The Sorites Group, Inc.
  18.                                   PO Box 2939
  19.                             Springfield, VA  22152
  20.  
  21.  
  22.  
  23.  
  24.  
  25.                                 March 13, 1985
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.                                TABLE OF CONTENTS
  76.  
  77.  
  78.           Chapter 1 Introduction........................  6
  79.                                                         
  80.              1.0  Introduction..........................  6
  81.              1.1  What is SORITEC?......................  6
  82.              1.2  SORITEC Sampler.......................  7
  83.              1.3  Getting Started.......................  8
  84.              1.4  Invoking SORITEC Sampler..............  9
  85.               1.4.1 Interactive Processing..............  9
  86.               1.4.2 Batch Processing.................... 10
  87.              1.5  Executing SAC Files................... 10
  88.              1.6  SORITEC Input Journal Files........... 11
  89.                                                         
  90.  
  91.           Chapter 2 SORITEC Syntax...................... 12
  92.                                                         
  93.              2.0  Introduction.......................... 12
  94.              2.1  Variable Names........................ 12
  95.              2.2  Special Symbols....................... 12
  96.              2.3  Variable Types........................ 13
  97.              2.4  Selection of the Observation Set...... 15
  98.               2.4.1  Conditional Selection of the 
  99.                         Observation Period.............. 15
  100.              2.5  Transformations....................... 16
  101.              2.6  Revising Data in SORITEC.............. 18
  102.              2.7  Missing Data Handling................. 19
  103.               2.7.1 Missing Value Symbol Declaration.... 20
  104.               2.7.2 Missing Value Logical Function...... 20
  105.               2.7.3 Imputation of Missing Values........ 21
  106.              2.8  Wildcards............................. 21
  107.              2.9  Options............................... 22
  108.              2.10 Recovering Internal SORITEC            
  109.                     Variables........................... 22
  110.              2.11 SORITEC's Symbol Table................ 23
  111.              2.12 Minor Control Statements.............. 24
  112.               2.12.1 Specify Width of Output Device..... 24
  113.               2.12.2 Change Length of Input Line........ 24
  114.               2.12.3 Reset Maximum Error Limit.......... 25
  115.               2.12.4 Turn Batch Listing On or Off....... 25
  116.               2.12.5 Label Batch Output Pages........... 25
  117.                                                         
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.                                   2
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.           Chapter 3 Data Entry and Output............... 26
  137.                                                         
  138.              3.0  Introduction.......................... 26
  139.              3.1  SORITEC Alternate Load (SAL) Files.... 26
  140.               3.1.1 SAL File Input...................... 27
  141.               3.1.2 SAL File Output..................... 27
  142.              3.2  Data Interchange Format (DIF) Files... 28
  143.               3.2.1 DIF File Input...................... 28
  144.               3.2.2 DIF File Output..................... 30
  145.              3.3  Formatted Input and Output............ 31
  146.               3.3.1 FORTRAN Formatted Input............. 31
  147.               3.3.2 FORTRAN Formatted Output............ 32
  148.              3.4  Keyboard Entry........................ 33
  149.              3.5  Output of Data to the Terminal........ 34
  150.               3.5.1 Tabular Display..................... 34
  151.               3.5.2 Graphical Display................... 34
  152.              3.6  SORITEC DataBank Files................ 36
  153.                                                         
  154.  
  155.           Chapter 4 SORITEC Databank (SDB) Files........ 37
  156.                                                         
  157.              4.0  Introduction.......................... 37
  158.              4.1  Create a Databank..................... 37
  159.              4.2  Access a Databank..................... 37
  160.              4.3  Release a Databank from SORITEC....... 38
  161.              4.4  Purge a Databank...................... 38
  162.              4.5  Retrieve Items from a Databank........ 38
  163.              4.6  Store Items in a Databank............. 39
  164.              4.7  Replace Items in a Databank........... 39
  165.              4.8  Rename Items in a Databank............ 39
  166.              4.9  Switch the Names of Two Items
  167.                      in a Databank...................... 40
  168.              4.10 Discard Items from a Databank......... 40
  169.              4.11 Generate a Directory Listing
  170.                      of a Databank...................... 40
  171.  
  172.  
  173.           Chapter 5 Programming Constructs.............. 41
  174.  
  175.              5.0  Introduction.......................... 41
  176.              5.1  Numeric Looping....................... 41
  177.              5.2  Unconditional Branching............... 42
  178.              5.3  Conditional Branching................. 43
  179.              5.4  Null (Continuation) Statement......... 43
  180.              5.5  Alpha Looping......................... 43
  181.           
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.                                   3
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.           Chapter 6 Dummy Data Series Generation and
  203.                     Special Transformation Commands..... 45
  204.  
  205.              6.0   Introduction......................... 45
  206.              6.1   Create a Time Trend Dummy Series..... 45
  207.              6.2   Create Seasonal Dummies.............. 45
  208.              6.3   Recode a Variable.................... 46
  209.              6.4   Conversion of Time-Series from 
  210.                       One Periodicity to Another........ 46
  211.              6.5   Maximum Function..................... 47
  212.              6.6   Minimum Function..................... 48
  213.              6.7   Modular Division..................... 48
  214.              6.8   Compute Moving Average............... 49
  215.              6.9   Compute Moving Sum................... 49
  216.              6.10  Statistical Operations............... 49
  217.               6.10.1  Correlation Matrix Calculation.... 49
  218.               6.10.2  Covariance Matrix Calculation..... 49
  219.               6.10.3  Other Statistical Operations...... 50
  220.  
  221.  
  222.           Chapter 7 SORITEC Financial Functions......... 51
  223.  
  224.              7.0  Financial Functions in SORITEC........ 51
  225.              7.1  Internal Rate of Return............... 51
  226.              7.2  Present Value......................... 52
  227.              7.3  Loan Amortization..................... 53
  228.  
  229.  
  230.           Chapter 8 SORITEC Sampler Cross-Section 
  231.                     Techniques.......................... 55
  232.  
  233.              8.0  Introduction.......................... 55
  234.              8.1  Synopsis.............................. 55
  235.              8.2  Crosstabulation Analysis.............. 56
  236.  
  237.           Chapter 9 Estimation and Forecasting with
  238.                     SORITEC Sampler..................... 57
  239.  
  240.              9.0  Introduction.......................... 57
  241.              9.1  Ordinary Least Squares (OLS) 
  242.                      Estimation......................... 57
  243.              9.2  Autocorrelation Techniques for the 
  244.                      Single Equation Model.............. 58
  245.               9.2.1 Cochrane-Orcutt Iterative Technique. 58
  246.               9.2.2 Hildreth-Lu Scanning Technique...... 58
  247.              9.3  Two-Stage Least Squares (2SLS) 
  248.                      Estimation......................... 59
  249.              9.4  Forecasting Single Equation Models.... 59
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.                                   4
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.           Chapter 10 SORITEC Interactive Print Server... 62
  269.                                                         
  270.              10.0  Introduction......................... 62
  271.              10.1  Entering Tableau Mode................ 62
  272.              10.2  Tableau Descriptions................. 63
  273.               10.2.1  Coefficient Display............... 63
  274.               10.2.2  Regression Summary Table.......... 63
  275.               10.2.3  Residual Autocorrelation Summary.. 63
  276.               10.2.4  PDF and Histogram of              
  277.                       Standardized Residuals............ 63
  278.               10.2.5  Non-Parametric Residual           
  279.                       Distribution Tests................ 63
  280.               10.2.6  Regression ANOVA Table............ 64
  281.               10.2.7  Covariance Matrix of              
  282.                       Coefficient Estimates............. 64
  283.               10.2.8  Correlation Matrix of             
  284.                       Coefficient Estimates............. 64
  285.               10.2.9  Beta Coefficients, Elasticities    
  286.                       and Partial R..................... 64
  287.               10.2.10 Statistical Summary of            
  288.                       Exogenous Variables............... 64
  289.               10.2.11 Actual vs Fitted Plot and         
  290.                       Standardized Residuals............ 64
  291.              10.3  Interactive Crosstabs................ 65
  292.           
  293.  
  294.           APPENDIX I   SORITEC INTERNAL SYSTEM NAMES.... 66
  295.  
  296.           APPENDIX II  GLOBAL OPTIONS AND DEFAULT 
  297.                           SETTINGS IN SORITEC........... 69
  298.  
  299.           APPENDIX III QUICK REFERENCE LISTING OF 
  300.                           SORITEC Sampler COMMANDS...... 73
  301.  
  302.           APPENDIX IV  DETAILED FEATURE LIST FOR SORITEC
  303.                           VERSION 1.06B................. 76
  304.  
  305.           INDEX
  306.  
  307.           SORITEC INFORMATION REQUEST FORM
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.                                   5
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.                                     Chapter 1   
  340.                                    Introduction
  341.  
  342.  
  343.   1.0  Introduction
  344.  
  345.       This econometrics package,  called SORITEC Sampler,  is provided to you 
  346.   free of charge from the Sorites Group, Inc. (SGI) of Springfield, Virginia.  
  347.   SGI is a software engineering firm which has been developing and supporting 
  348.   a  machine-independent  econometric  modeling  package  since  1978.    Our 
  349.   package,  called  SORITEC  (SORITes EConometric) is  now  supported  on  22 
  350.   different  mainframes,  minicomputers and microcomputers and still has only 
  351.   one  reference  manual.  The program's command syntax is identical  on  all 
  352.   machines.
  353.  
  354.       In  the spring of 1984,  we made our first port to the IBM PC.   Unlike 
  355.   other econometric packages for microcomputers,  the full version of SORITEC 
  356.   for  the  PC is not a subset of the mainframe package.   In order  for  the 
  357.   program to operate,  the full power of the IBM PC/XT,  PC/AT or  compatible 
  358.   computer  must be available.   This means that your system must have a hard 
  359.   disk and 512K of RAM.   The 8087 math co-processor is required for the full 
  360.   version of SORITEC.  
  361.  
  362.        The  availability of advanced econometric and  statistical  techniques 
  363.   including full information maximum likelihood (FIML), and non-linear simul-
  364.   taneous  equations estimation and simulation for a fraction of the price of 
  365.   similar  capabilities on a mainframe has put us in the forefront  of  using 
  366.   the  full  potential of the IBM PC and compatibles.   Given the  increasing 
  367.   power  and declining costs of micro-computers,  our original belief in  the 
  368.   need for a machine-independent econometrics package has proved correct.
  369.  
  370.  
  371.   1.1  What is SORITEC?
  372.  
  373.        SORITEC is a sophisticated econometric modeling and forecasting system 
  374.   that  allows you to estimate or solve and simulate almost any  mathematical 
  375.   model  that you might specify.   The program enables you to do  econometric 
  376.   time-series analysis within an easy-to-use command language syntax.   Those 
  377.   of you familiar with TSP will find SORITEC's command language similar.
  378.  
  379.        SORITEC can handle models with hundreds of equations, either linear or 
  380.   non-linear,  in either a static or dynamic framework.  Model systems can be 
  381.   specified,  built,  rearranged, databanked and manipulated by name.  Once a 
  382.   model is constructed,  it can be recalled and resimulated by a single  com-
  383.   mand.   SORITEC  provides a report writer capable of providing detailed and 
  384.   complex reports with minimal effort and training.   SORITEC is also a  com-
  385.   plete  data  processing language that lets you do varied and  complex  data 
  386.   reduction  operations easily.   The combination of its econometric  methods 
  387.   and  report  writing  capabilities permits SORITEC to handle  most  current 
  388.   production  reporting automatically via command files.   SORITEC also  con-
  389.  
  390.  
  391.                                   6
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.   tains  most  of the useful statistical functions of the  leading  mainframe 
  401.   statistics packages.  As new versions of SORITEC are released, we expect it 
  402.   will  soon  exceed  the pure statistical capabilities  of  these  packages.  
  403.   Appendix  IV  of  this document provides a complete  list  of  features  in 
  404.   SORITEC.
  405.  
  406.       A  new version of SORITEC (Version 1.06B),  available in February 1985, 
  407.   incorporates significant enhancements to the system's analytical  capabili-
  408.   ties  and  user  friendliness,  including multivariate techniques  such  as 
  409.   PROBIT,  CROSSTABS and ANOVA,  the most complete set of regression diagnos-
  410.   tics available,  and tableau-oriented  regression  output.   Mainframe  and
  411.   minicomputer versions of SORITEC are available to universities for teaching
  412.   purposes free of charge (except for a small processing  fee).  Contact  SGI
  413.   or a local distributor for prices.
  414.  
  415.  
  416.   1.2  SORITEC Sampler
  417.  
  418.        SORITEC  Sampler  is a subset of the full SORITEC and is equivalent to 
  419.   econometric  packages sold today for $200 to $400.   It is supplied free of 
  420.   charge,  and may be reproduced and distributed freely as long as no fee  is 
  421.   charged  and no alterations are made.   The program requires 384K of random 
  422.   access memory and can run off floppy diskettes.   The 8087 math coprocessor 
  423.   is recommended.  
  424.  
  425.        We  decided to give SORITEC Sampler away for several reasons.   First, 
  426.   distributing a version of SORITEC which is useful, free and reproducible is 
  427.   a  cost-effective  method of advertising this type  of  product.   You  are 
  428.   encouraged  to make as many copies as you wish and pass them on to  friends 
  429.   and  colleagues.   Second,  we  needed a demo copy to illustrate  SORITEC's 
  430.   command structure,  data handling capabilities and techniques.  Rather than 
  431.   sending  out  a  demo disk that simply went through  some  song  and  dance 
  432.   without  allowing  you  to really "touch" the package,  we figured  that  a 
  433.   "live",  though  limited,  version of the real thing would be an  excellent 
  434.   demonstration of SORITEC's features.   Lastly,  SORITEC Sampler is based on 
  435.   the  belief that there is no justification for charging to estimate  single 
  436.   equation models.  
  437.  
  438.        The techniques described in this Reference Manual are those  supported 
  439.   by  SORITEC  Sampler.  However,  they  function  identically  to  those  in
  440.   SORITEC.  SORITEC  Sampler  provides  a  useful  introductory  econometrics 
  441.   package  that  will encourage people to apply econometric  and  statistical 
  442.   techniques.   In  return,  we hope that you will consider us when you  want 
  443.   more  econometric capability on your computer and will help spread the word 
  444.   about SORITEC by passing this package around.   We,  in turn, will continue 
  445.   to  reinvest  our   revenues in product development  instead  of  elaborate 
  446.   advertising.   
  447.  
  448.        You can obtain the latest release of SORITEC Sampler plus a bound copy 
  449.   of  this Reference Manual and the full SORITEC Reference Manual by  sending 
  450.  
  451.  
  452.                                   7
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.   (U.S.)$50.00  to  SGI.   Consult the form at the end of this  document  for 
  462.   further details.   Note that SORITEC Sampler is NOT a supported product and 
  463.   is  distributed  without  warranties of MERCHANTABILITY and FITNESS  FOR  A 
  464.   PARTICULAR PURPOSE.  
  465.  
  466.  
  467.   1.3  Getting Started
  468.  
  469.        SORITEC  Sampler  is distributed on two diskettes;  a  third  diskette 
  470.   contains  this documentation and examples.   You can make a backup  of  the 
  471.   diskettes  for  safekeeping or distribution by using the DOS COPY  command. 
  472.   Use  COPY a:*.* b:  to copy all files on the diskette to another  diskette.  
  473.   If  your system has a hard disk,  use COPY a:*.* to copy all files  on  the 
  474.   diskette to your current directory.
  475.  
  476.        SORITEC  Sampler  requires  at  least 384 KB of RAM  and  DOS  2.0  to 
  477.   execute.   An 8087 or 80287 math co-processor is optional, but recommended.  
  478.   The  program may be run either from floppy diskettes or from a directory on 
  479.   a hard disk system.  
  480.  
  481.        Sampler has some minimum system requirements which may require you  to 
  482.   change  your CONFIG.SYS file.   The following commands must be included  in 
  483.   the CONFIG.SYS file before running the program.
  484.  
  485.                  DEVICE = ANSI.SYS
  486.                  FILES = 12
  487.                  BUFFERS = 12
  488.                  BREAK = ON
  489.  
  490.  
  491.        To invoke SORITEC Sampler on systems without a hard disk,  insert Disk 
  492.   1 of 2 into the current drive and enter:
  493.  
  494.             SAMPLER 
  495.  
  496.   followed  by a carriage return.   After a moment,  you will be prompted  to 
  497.   insert Disk 2 of 2 into the current drive.  Replace the first diskette with 
  498.   the  second and enter a carriage return.   Once the SORITEC Sampler  banner 
  499.   appears on the screen, follow the instructions displayed there.  
  500.  
  501.        To  invoke  SORITEC Sampler on systems with a hard  disk,  you  should 
  502.   first copy the SAMPLER.EXE from the first distribution disk,  plus all .OVL 
  503.   files  and the SAMPLER.FMT file from the second distribution diskette to  a 
  504.   directory  or  subdirectory on the disk.   Invoke the program, as  outlined 
  505.   above, by entering
  506.  
  507.             SAMPLER
  508.  
  509.   and follow the instructions once the banner appears on the screen.
  510.  
  511.        Use  the DOS PATH command to identify the subdirectory in  which  your 
  512.   SAMPLER.EXE,  .OVL  and .FMT files are stored if you want to invoke SORITEC 
  513.   Sampler from any other directory or subdirectory on your hard disk. Sampler 
  514.   will refer to its "home" subdirectory to load overlays, etc., but will look 
  515.   for all input files and write all output files, including the input journal 
  516.  
  517.  
  518.                                   8
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.   file,  to  the  current directory unless another  directory  is  explicitly 
  528.   specified in the SORITEC command.
  529.  
  530.        SORITEC  Sampler also supports DOS redirection of standard  input  and 
  531.   output  devices so that filename arguments may appear on the command  line.  
  532.   Any combination of:
  533.  
  534.             SAMPLER  [ <  [d:][path]filename ]
  535.                      [ >  [d:][path]filename ]
  536.                      [ >> [d:][path]filename ]
  537.  
  538.   are  legal  arguments  in the command line.   Refer to  the  "Advanced  DOS 
  539.   Commands" chapter of your DOS manual for information about I/O redirection.  
  540.   DOS  redirection  is  particularly useful with SORITEC's  batch  processing 
  541.   facility.  
  542.  
  543.        Do  not invoke DOS redirection if you are running SORITEC Sampler on a 
  544.   floppy disk system.  
  545.  
  546.  
  547.   1.4  Invoking SORITEC Sampler
  548.  
  549.        SORITEC Sampler executes in both interactive and batch modes of proce-
  550.   ssing.   However,  before describing how each mode is invoked, it is impor-
  551.   tant to distinguish SORITEC interactive and batch processing modes from the 
  552.   foreground  and background processing modes that are  typically  associated 
  553.   with these terms.   When SORITEC is in interactive mode,  the program takes 
  554.   each line of input and processes it as it is received.  In batch processing 
  555.   mode,  on  the  other  hand,  SORITEC accepts input lines  until  they  are 
  556.   logically concluded with an END statement.  At that point, batch job execu-
  557.   tion begins.  Note that SORITEC interactive and batch modes can run in both 
  558.   foreground and background processing environments.
  559.  
  560.        Batch  job  processing  in SORITEC has  certain  characteristics  that 
  561.   sometimes make it more convenient to use than interactive mode.   First, it 
  562.   compiles a complete listing of the commands of a job and outputs it without 
  563.   line prompts to the output device before execution begins.   This separates 
  564.   the  command  lines  from the output and generally makes  the  output  more 
  565.   presentable for reports,  etc.   Second, batch processing mode provides for 
  566.   the  labelling  of  the job and the insertion of  titles  into  the  output 
  567.   listing.   Batch processing mode is often useful when output is too wide to 
  568.   be displayed legibly on the terminal.  Through DOS redirection and respeci-
  569.   fication of the output width,  output that would otherwise be difficult  to 
  570.   read  on  a terminal can be routed to other output devices,  such  as  line 
  571.   printers.  Although most of these features can be replicated in interactive 
  572.   mode, it is generally more convenient as a batch job.
  573.  
  574.        1.4.1  Interactive Processing
  575.  
  576.        SORITEC  Sampler prompts you for input after the banner page has  been 
  577.   passed.   Prompts  in  SORITEC are of the form 1-- ,2-- ,3--   and  so  on.  
  578.   When  the  first prompt is returned,  interactive processing is started  by 
  579.   entering:
  580.  
  581.             HELLO
  582.  
  583.  
  584.                                   9
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.   Sampler  will respond by printing another banner with version  information, 
  595.   date and time,  default settings for input (SCAN) and output  (WIDTH),  and 
  596.   workspace size.   After the second prompt has been displayed, you may enter 
  597.   any legal SORITEC Sampler command.
  598.  
  599.        Interactive processing is terminated by entering the command:
  600.  
  601.             QUIT
  602.  
  603.   Execution  of QUIT closes and returns any files that are currently attached 
  604.   and  returns  control  to  DOS.   All items in  the  user's  workspace  are 
  605.   irretrievably lost once the QUIT command is executed.
  606.  
  607.        
  608.     1.4.2  Batch Processing
  609.  
  610.        SORITEC identifies batch job processing through the JOB command.   The 
  611.   JOB command consists of the command name and up to 120 characters of  label 
  612.   information, i.e.,
  613.  
  614.             JOB job_label
  615.  
  616.   The  JOB command supplies unchangeable labelling information for the entire 
  617.   batch  run.   As such,  only one JOB command may appear in any  single  job 
  618.   deck.  The "job_label" may not contain the symbols ; , $ , or &.
  619.  
  620.        Batch  processing  is terminated by the END command which  is  entered 
  621.   simply as:
  622.  
  623.             END
  624.  
  625.   At  the  end of a JOB,  the END statement instructs SORITEC to  return  and 
  626.   close any databank or other file which is attached.   The user's  workspace 
  627.   is irretrievably lost after the END statement is processed.
  628.  
  629.        Note that the END command has several uses in SORITEC.  It is required 
  630.   at the end of SORITEC SAL files and to close DO loops and PROCEDURES.  This 
  631.   does not mean that you cannot embed a command within a batch job that  uses 
  632.   an  END  statement.   SORITEC keeps track of END statements when  compiling 
  633.   batch job statements and senses the end of a JOB only when it is  logically 
  634.   compelled to do so.   Descriptions of these other commands that use the END 
  635.   command are provided later in this documentation.
  636.  
  637.  
  638.   1.5  Executing SAC Files
  639.  
  640.        SORITEC  accepts input from other than the terminal through a  command 
  641.   file  known as a SORITEC Alternate Command,  or SAC,  file.   A SAC file is 
  642.   simply a DOS file that contains legal SORITEC commands.   It may be  struc-
  643.   tured  as a batch job for SORITEC's batch processing facility or may simply 
  644.   be  a  set  of commands as you would enter them  from  the  terminal.   For 
  645.   SORITEC  to  recognize  it as a SAC file,  the filename must  have  a  .SAC 
  646.   extension,   i.e.,   the   file  must  exist  on  your  DOS  directory   as 
  647.   "filename.SAC".   It  can be constructed using any  commercially  available 
  648.  
  649.  
  650.                                  10
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.   text processor.  
  660.  
  661.        SORITEC  will  execute  command files at any point in  an  interactive 
  662.   processing session.  Command file processing is started by entering:
  663.  
  664.             EXECUTE filename
  665.  
  666.   where "filename" is the name of the command file you wish to have executed.  
  667.   Do  not enter the file extension with the filename on the  EXECUTE  command 
  668.   line.  
  669.  
  670.        If  the SAC file exists on a drive or directory other than the current 
  671.   one, it must be referenced within single quotations, i.e.,
  672.  
  673.             EXECUTE 'd:filename'
  674.   or
  675.             EXECUTE '\path\filename'
  676.  
  677.   Command file output is always displayed on the terminal unless it has  been 
  678.   redirected via DOS redirection.
  679.  
  680.  
  681.   1.6  SORITEC Input Journal Files
  682.  
  683.        Sampler  will  open an input journal file on  the  current  directory, 
  684.   called  SORITEC.JNL,  if interactive processing mode is invoked and the  ON 
  685.   JOURNAL  option is enabled.     This file stores all commands that are  en-
  686.   tered  during  a session so that you can archive the command  sequence  for 
  687.   future use.   The file can later be executed as a SORITEC Alternate Command 
  688.   file.   Journal files are particularly important for reviewing an  interac-
  689.   tive session for errors when results are not as expected.  They can also be 
  690.   edited and re-executed to produce a "final draft" of a particular statisti-
  691.   cal or estimation problem.
  692.  
  693.        Any file that exists as SORITEC.JNL on the current directory is  auto-
  694.   matically erased when a new journal file is written.  Be sure to rename any 
  695.   journal files you wish to keep.  Remember that you must change the filename 
  696.   extension to ".SAC" if you wish to EXECUTE it as a command file.
  697.  
  698.        Do  not  enable the JOURNAL option if you are running SORITEC  Sampler 
  699.   off  floppy disks as there is no room on Disk 2 for writing the  file.   If 
  700.   you attempt to do this,  Sampler will print an error message and  re-prompt 
  701.   you for a command.   Unpredictable results could be obtained,  however,  in 
  702.   subsequent operations.
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.                                  11
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.                                    Chapter 2
  731.                                 SORITEC Syntax
  732.  
  733.  
  734.   2.0 Introduction
  735.    
  736.        SORITEC syntax has been constructed to make the entire package easy to 
  737.   learn and use.  Typical SORITEC operations can be divided into two types of 
  738.   statements:  commands and transformations.   Before considering the command 
  739.   structure  or  allowable  transforms,  we need to consider the  form  of  a 
  740.   SORITEC variable name.
  741.  
  742.        The  most  important fact to keep in mind when you are  using  SORITEC 
  743.   Sampler  is  that  the  language is "series"  oriented  rather  than  value 
  744.   oriented.   In  FORTRAN  or BASIC,  the statement X=Y sets the value  of  a 
  745.   VARIABLE  X  to the value of variable Y.   In SORITEC,  X = Y replaces  the 
  746.   entire time-series X with the time-series Y.   So, in SORITEC, single para-
  747.   meter values are more the exception than the rule.
  748.  
  749.  
  750.   2.1 Variable Names
  751.  
  752.        SORITEC variable names are composed of the characters A-Z, the numbers 
  753.   0-9 and the symbols @, %, ^, _, or :.  The name MUST begin with a character 
  754.   and  must be no more than 32 characters (or  symbols)  long.   Mathematical 
  755.   operators may not be used in variable names.
  756.  
  757.        SORITEC  allows  dynamic leading or lagging of variables through  sub-
  758.   scripted arguments;  for example, GNP(1) and GNP(-1) are the first lead and 
  759.   lag  values  of  GNP.   Arguments for lags or ranges may  also  be  integer 
  760.   constants  or  SORITEC variables.   In commands that expect multiple  argu-
  761.   ments, SORITEC will accept ranged values of leads and lags, e.g., GNP(+2 TO 
  762.   -3) is automatically expanded to GNP(2) GNP(1) GNP GNP(-1) GNP(-2) GNP(-3).  
  763.   Note that positive signing of lead arguments is optional.
  764.  
  765.  
  766.   2.2 Special Symbols
  767.  
  768.        SORITEC  defines  several  special symbols to  provide  a  simplifying 
  769.   shorthand in using the package.  Currently, the symbols ;, !, ",", =, +, -, 
  770.   *,  /,  .,   >, <, (, ),  ?, &, and the string  ... have special meaning in 
  771.   SORITEC.  
  772.  
  773.        ;  delimits  each  command  when several commands are "stacked"  on  a 
  774.   single line, e.g., 
  775.  
  776.             USE 1984M1 1984M6 ; PRINT GNP
  777.  
  778.        !  identifies comments in SORITEC.   If entered in column 1,  any text 
  779.   between  the !  and the end of the line or line delimiter ";" is considered 
  780.  
  781.  
  782.                                  12
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.   to  be  a comment and is ignored by the interpreter.   The  !  symbol  only 
  792.   functions as a comment identifier if placed in column 1. 
  793.  
  794.        ","  is  used  only as an argument separator and is interpreted  as  a 
  795.   blank everywhere except in a format statement.
  796.  
  797.        +  -  *  /  .  <  >  and  =  are reserved for math operations.
  798.  
  799.        The parenthetical symbols,   (  and  ) ,  are reserved for designating 
  800.   command modifiers, arguments and subscripts.  
  801.  
  802.        The  symbols "*" and "?" are used as a wildcard references,  described 
  803.   later in this chapter.
  804.  
  805.        Lastly, & and ... indicate that the current command continues onto the 
  806.   next line.  
  807.  
  808.  
  809.   2.3 Variable Types
  810.  
  811.        There  are seven types of variables in the  SORITEC  language.   Time-
  812.   series  variables are the default data type in SORITEC,  so a reference  to 
  813.   variable  X implicitly references the time-series X.   Variable  assignment 
  814.   implicitly  assumes the variable is time-series unless you state otherwise; 
  815.   so, a simple statement such as x=2 creates a series of numbers all equal to 
  816.   2, NOT a single value.
  817.  
  818.        The second most common data types are parameters and constants.   Both 
  819.   are  scalar values,  but whereas parameter values can be changed by the SET 
  820.   command,  constants  cannot.   Parameters and constants are created by  the 
  821.   following statements.
  822.  
  823.             PARAMETER param_1 [value_1] param_2 [value_2] ...
  824.  
  825.             CONSTANT const_1 [value_1] const_2 [value_2] ...
  826.  
  827.   If  the value associated with a parameter or constant is  omitted,  SORITEC 
  828.   sets  it  to  zero.   Parameters can be set or  reset  using  any  standard 
  829.   transformation  by prefixing the transformation with the SET  command,  for 
  830.   example:
  831.  
  832.             PARAMETER a .5 b .3
  833.             SET a = a**0.5 * log(b)
  834.  
  835.        SORITEC  also defines vector and matrix data types.   These types  are 
  836.   created by using the VECTOR or MMAKE commands,  respectively.   To create a 
  837.   vector, use the command:
  838.  
  839.             VECTOR vector_name value_1 value_2 ...
  840.  
  841.   For example, to create the vector BETA, you would type
  842.  
  843.             VECTOR BETA  .5 .2 .1 -.5
  844.  
  845.   SORITEC keeps track of the length of the vector when it is created.   Indi-
  846.  
  847.  
  848.                                  13
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.   vidual  elements  of  a  vector can be manipulated like  scalar  values  in 
  858.   SORITEC commands using subscript notation.  For example:
  859.  
  860.             SET ZERO=BETA(1)+BETA(4)
  861.  
  862.   would result in the value of the scalar ZERO to 0.0.  Matrix data types are 
  863.   not supported in SORITEC Sampler.
  864.  
  865.        SORITEC also allows you to name and manipulate equations as a separate 
  866.   data construct using the EQUATION command.  The form of the command is:
  867.  
  868.             EQUATION  equation_name  [equation]
  869.  
  870.   Equations are structured exactly as they are in FORTRAN.
  871.  
  872.        Equations can be stored in databases and can be computed by name, once 
  873.   values  have  been  assigned to their parameters  and  variables.  Use  the 
  874.   COMPUTE command, which is of the form:
  875.  
  876.             COMPUTE  equation_name
  877.  
  878.   to recompute values for the left-hand side variables.  
  879.  
  880.        Note  that the primary use of equations in SORITEC is for  forecasting 
  881.   and for non-linear estimation.   In SORITEC Sampler, you can only use equa-
  882.   tions for forecasting or recomputing values, but not for estimation.
  883.  
  884.        The  final data type is the GROUP.   A GROUP is a namelist that speci-
  885.   fies a set of names for further processing.  The namelist is initialized by 
  886.   the GROUP command, which has the form:
  887.  
  888.             GROUP group_name name_1 name_2 ... name_k
  889.  
  890.   To  extract  the  elements of a namelist,  group expansion  must  first  be 
  891.   enabled  via the ON GROUP command.  The group name is then replaced by  the 
  892.   individual  names in the namelist.   This avoids the need to type the  same 
  893.   set  of  names repeatedly.   For example,  the following  commands  greatly 
  894.   simplify testing the inclusion of variables in a regression equation.
  895.  
  896.             GROUP basic_variables GNP M1 TAXES GOV_EXP PRIME
  897.             ON GROUP
  898.             REGRESS DEFICIT basic_variables PARTY
  899.             REGRESS DEFICIT basic_variables TIME
  900.             ... etc
  901.  
  902.        You  can  also reference individual elements within a GROUP  by  index 
  903.   number.   For example, you could reference "basic_variables(2)" in place of 
  904.   M1 in the example given above.  Referencing individual namelist elements by 
  905.   index number is particularly useful in DO loops.
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.                                  14
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.   2.4  Selection of the Observation Set
  924.  
  925.        Periodicity  and length of data series are defined by the USE  command 
  926.   in  SORITEC.   The  USE  period defined by this command is  active  in  all 
  927.   subsequent SORITEC commands until explicitly changed by another USE.   Data 
  928.   need  not  be continuous over the range of observations,  but  instead  may 
  929.   consist of a series of intervals.  The form of the USE command is:
  930.  
  931.             USE [begin_1] [end_1] [begin_2] [end_2] ...
  932.  
  933.   USE requires zero, one or an even number of arguments which may be positive 
  934.   integers,  constants,  parameters or a vector.   Each pair of arguments de-
  935.   fines  a  range  of  observations within  the  overall  observation  range, 
  936.   "begin_1" to "end_n".  The second argument must not be less than the first.  
  937.   If  no  arguments are included in the command  line,  SORITEC  returns  the 
  938.   currently  active  USE  period.   If only one argument is included  in  the 
  939.   command line, the end period is implicitly equated to the first.
  940.  
  941.        SORITEC allows you to define annual,  semi-annual, quarterly, monthly, 
  942.   ten day,  weekly, daily and undated data types.  Periodicity of time-series 
  943.   data  is defined by appending an appropriate suffix to the  data  year,  as 
  944.   shown in the following table.
  945.  
  946.                  PERIODICITY         SUFFIX              RANGE(x)
  947.                  -----------         ------              --------
  948.                    Annual             none                 --
  949.                    Semi-annual         Sx                 [1,2]
  950.                    Quarterly           Qx                 [1,4]
  951.                    Monthly             Mx                 [1,12]
  952.                    Ten Day             Tx                 [1,37]
  953.                    Weekly              Wx                 [1,52]
  954.                    Daily               Dx                 [1,366]
  955.                    Undated            none                [1,1000]
  956.  
  957.        The  permissible range of years in dated data types is 1901  to  2100.  
  958.   Note  that Ten Day data consists of first and second ten-day periods of the 
  959.   month, and a remaining period of 8, 10 or 11 days.  Weekly data span Sunday 
  960.   through  Saturday.   SORITEC Sampler will convert data series from type  to 
  961.   another,  but certain restrictions apply.   Data conversion is discussed in 
  962.   Section 6.4.  
  963.  
  964.        The following are examples of USE commands:
  965.  
  966.             USE 1980q1 1984q4; USE 1942m12 1955m6
  967.  
  968.   Note that the command USE 1980 is equivalent to USE 1980 1980.
  969.  
  970.  
  971.        2.4.1  Conditional Selection of the Observation Period
  972.  
  973.        SORITEC  also permits conditional selection of the sample period based 
  974.   on a logical variable.  The format of the command is
  975.  
  976.            USEIF series
  977.  
  978.  
  979.  
  980.                                  15
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.   where  "series" is an indicator series.   The USEIF command resets the  USE 
  990.   period to select only the observations corresponding to non-zero entries of 
  991.   "series".   For example, to run a regression on all individuals with income 
  992.   between $12,000 and $24,500 
  993.  
  994.        NEW_SAMPLE = INCOME > 12000 .AND. INCOME < 24500
  995.        USEIF NEW_SAMPLE
  996.  
  997.  
  998.   2.5 Transformations
  999.  
  1000.        The COMPUTE command is the basic SORITEC transformation command.   The 
  1001.   command line consists of the COMPUTE command name followed by one argument, 
  1002.   which must be an EQUATION name or any legal SORITEC transformation  expres-
  1003.   sion, i.e.,
  1004.  
  1005.             COMPUTE equation_name
  1006.   or   
  1007.             [COMPUTE] transformation_expression
  1008.  
  1009.   In the latter case, the COMPUTE command name may be omitted, e.g..
  1010.  
  1011.             result = var_1 + var_2
  1012.     
  1013.   Transformations  are  straightforward in SORITEC as  syntax  considerations 
  1014.   conform  to  standard  algebraic  notation.   Legal  operators  in  SORITEC 
  1015.   transformations are as follows:
  1016.  
  1017.        ARITHMETIC OPERATORS               LOGICAL OPERATORS
  1018.        --------------------               -----------------
  1019.             +    add                 .eq.                equal
  1020.             -    subtract            .ne. or <> or ><    not-equal
  1021.             *    multiply            .ge. or >= or =>    greater-or-equal    
  1022.             /    divide              .le. or <= or =<    less-than-or-equal
  1023.             **   exponentiation      .gt. or >           greater-than
  1024.                                      .lt. or <           less-than
  1025.                                      .not.               negation
  1026.                                      .and.               and-function
  1027.                                      .or.                or-function
  1028.  
  1029.        Transformations  can contain any of the mathematical functions  listed 
  1030.   below.
  1031.  
  1032.             LOG                             SINH     Hyperbolic Sine  
  1033.        or   ALOG   Natural Logarithm        COSH     Hyperbolic Cosine
  1034.        or   LN                              TANH     Hyperbolic Tangent
  1035.                                             ASINH    Hyperbolic Arcsine      
  1036.             ALOG10                          ACOSH    Hyperbolic Arccosine    
  1037.        or   L10    Logarithm Base 10        ATANH    Hyberbolic Arctangent   
  1038.  
  1039.             EXP    Exponential constant     CEILING  Next Largest Integer    
  1040.             ABS    Absolute Value           FLOOR    Next Smallest Integer   
  1041.                                             ROUND    Round to Nearest Integer
  1042.  
  1043.  
  1044.  
  1045.  
  1046.                                  16
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.             SIN    Sine                     
  1056.             COS    Cosine                   SIGN     Extract Sign (+1,0,-1)  
  1057.             TAN    Tangent                  TRUNC    Truncate Fractional Part
  1058.             ASIN   Arcsine                                                   
  1059.             ACOS   Arccosine                                                 
  1060.             ATAN   Arctangent               
  1061.                                             
  1062.   Arguments  associated  with  these functions must  be  enclosed  in  paren-
  1063.   theses.   Note  that  there is no SQRT function in SORITEC.  Use  the  more 
  1064.   general form var**0.5 instead.
  1065.  
  1066.        Use  of  operators  in  SORITEC transformations must  conform  to  the 
  1067.   following conventions.
  1068.  
  1069.            (1) Two operators (+,-,.and.,.or., etc.) cannot occur in     
  1070.                sequence  unless   separated  by one  or  more  open     
  1071.                parentheses.
  1072.  
  1073.            (2) The  number  of open and closed parentheses must  be 
  1074.                equal.
  1075.  
  1076.            (3) The mathematical operators "*",  "/" and "**" cannot 
  1077.                occur immediately after an open parenthesis.
  1078.  
  1079.            (4) An operator cannot occur immediately before a closed 
  1080.                parenthesis.
  1081.  
  1082.        Transformations  are parsed according to standard programming  conven-
  1083.   tions.  Therefore, subformulae in parentheses are evaluated first, followed 
  1084.   by all function evaluations, then all "**" operations, then all "*" and "/" 
  1085.   operations,  and lastly all "+" and "-" operations.   Logical operators are 
  1086.   evaluated after parentheses and mathematical operators.  Within this group, 
  1087.   mathematical comparisons (.eq.,  .ne.  or <> or ><, .ge. or >=  or =>, .le. 
  1088.   or  <= or =<,  .gt.  or >,  .lt.  or < ) are evaluated first,  followed  by 
  1089.   logical negation (.not.), and lastly by .and. and .or.. When in doubt about 
  1090.   the order of evaluation, use parentheses to avoid errors.
  1091.                                               
  1092.        Note  that  you can combine mathematical and logical operations  in  a 
  1093.   single  transformation.   This allows complex conditional structures to  be 
  1094.   imbedded  directly  into  equations and expressions in  a  highly  flexible 
  1095.   manner.   For  example,  the expression y=log(x)*(b.gt.1)+x*(b.le.1)  is  a 
  1096.   legal  SORITEC  transformation.   The logical portion of the  expansion  is 
  1097.   merely evaluated to 1 or 0 and then used in the computation.
  1098.             
  1099.        SORITEC   Sampler   does  not  handle  some  illegal   transformations 
  1100.   gracefully  and,  in these situations,  can terminate sessions abruptly  by 
  1101.   exiting to DOS.  For example, the transformation:
  1102.  
  1103.             A = (=)
  1104.  
  1105.   "crashes" the system and returns to the DOS command level.   As all  active 
  1106.   items in SORITEC's workspace are irretrievably lost in this situation,  you 
  1107.   should avoid entering nonsense into SORITEC commands.   Most common  errors 
  1108.   in transformations,  such as unbalanced parentheses, however, cause warning 
  1109.   statements to be issued but keep the current SORITEC session active.
  1110.  
  1111.  
  1112.                                  17
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.   2.6  Revising Data in SORITEC
  1124.  
  1125.        Data  series  may be extended or revised easily in SORITEC  using  the 
  1126.   REVISE command and the USE command.   The format of the command is  similar 
  1127.   to the COMPUTE command, i.e.,
  1128.  
  1129.             REVISE transformation_expression
  1130.  
  1131.   A  data  item being REVISEd must have been previously defined  in  SORITEC.  
  1132.   The command cannot be used to initialize the variable.
  1133.  
  1134.        REVISE  updates a variable by temporarily deactivating values for  the 
  1135.   variable that lie outside the range of the currently active USE period.  In 
  1136.   other words, to update a data series you must first define the observations 
  1137.   of  the series that you wish to revise with the USE command before changing 
  1138.   the  data  with the REVISE command.   For example,  revision of  the  third 
  1139.   observation  of an undated series "old_data",  defined below,  requires the 
  1140.   following commands to generate the series on the right:
  1141.  
  1142.                                                                OLD_DATA   
  1143.                                                           ................
  1144.             FILL old_data 1 2 3 4 5                       .               
  1145.             USE 3 3                                 1     .    1.00000    
  1146.             REVISE old_data=3.5                     2     .    2.00000    
  1147.             PRINT old_data                          3     .    3.50000    
  1148.                                                     4     .    4.00000    
  1149.                                                     5     .    5.00000    
  1150.               
  1151.        Since any legal transformation is permitted as an argument,  the right 
  1152.   hand  side of the equation can be a constant,  time-series or  other  valid 
  1153.   SORITEC  expression.   Revision of the third and fourth observations of the 
  1154.   original "old_data",  for example,  requires the following commands to pro-
  1155.   duce the output on the right:
  1156.  
  1157.                                                                OLD_DATA   
  1158.             USE 3 4                                       ................
  1159.             FILL new_data 4 5                             .               
  1160.             REVISE old_data = new_data - 1.5        1     .    1.00000    
  1161.             USE 1 5                                 2     .    2.00000    
  1162.             PRINT old_data                          3     .    2.50000    
  1163.                                                     4     .    3.50000    
  1164.                                                     5     .    5.00000    
  1165.    
  1166.        Extending  a data series by one or more observations  simply  requires 
  1167.   redefining the USE period to the period you wish to update and revising the 
  1168.   data  as before.   For example,  the output on the right is produced by the 
  1169.   following commands:
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.                                  18
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.                                                                OLD_DATA   
  1188.             USE 6 6                                       ................
  1189.             REVISE old_series = 6                         .               
  1190.             USE 1 6                                 1     .    1.00000    
  1191.             PRINT old_series                        2     .    2.00000    
  1192.                                                     3     .    3.00000    
  1193.                                                     4     .    4.00000    
  1194.                                                     5     .    5.00000    
  1195.                                                     6     .    6.00000    
  1196.  
  1197.        A  similar procedure is used when splicing two series  together.   For 
  1198.   example, the command sequence on the left splices observations 6 through 10 
  1199.   of "new_data" to the original five observations of "old_data".
  1200.  
  1201.                                                                OLD_DATA  
  1202.             USE 6 10                                      ................   
  1203.             FILL new_data 6 7 8 9 10                      .              
  1204.             REVISE old_data = new_data              1     .    1.00000   
  1205.             USE 1 10                                2     .    2.00000   
  1206.             PRINT old_data                          3     .    3.00000   
  1207.                                                     4     .    4.00000   
  1208.                                                     5     .    5.00000   
  1209.                                                     6     .    6.00000   
  1210.                                                     7     .    7.00000   
  1211.                                                     8     .    8.00000   
  1212.                                                     9     .    9.00000   
  1213.                                                    10     .    10.0000   
  1214.               
  1215.        Data  revision  can  also be  automatically  implemented  through  the 
  1216.   COMPUTE  and FILL commands by enabling the ON REVISE global  option.   (The 
  1217.   FILL  command is described in Chapter 3.)  Values for data in the currently 
  1218.   active  USE period are overwritten when these commands  are  executed,  but 
  1219.   values outside the USE period are retained,  until an OFF REVISE command is 
  1220.   encountered.
  1221.  
  1222.    
  1223.   2.7  Missing Data Handling
  1224.  
  1225.        In general,  SORITEC  does  not do casewise or any other type of dele-
  1226.   tion  when  it encounters MISSING data.   Instead,  an  error   message  is 
  1227.   printed and zero is used in all contexts except transformations.  An excep-
  1228.   tion to this rule occurs in the cross-sectional procedures. Here, categori-
  1229.   cal  techniques  treat missing data as a separate category while  SYNOPSIS, 
  1230.   non-parametric and other statistical techniques ignore missing values.
  1231.  
  1232.        Several  enhancements  to missing value handling have  been  added  to 
  1233.   SORITEC. 
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.                                  19
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.             (1) SORITEC  generates  a MISSING value in  transforma-
  1254.                 tions  that  involve  MISSING  data,   except  when 
  1255.                 MISSING data are multiplied by zero.   Here, a zero 
  1256.                 value for the transformation results. 
  1257.  
  1258.             (2) The PUNCH command now generates the word  'MISSING' 
  1259.                 for each missing value.
  1260.  
  1261.             (3) The READ command now recognizes the words 'MISSING' 
  1262.                 and 'NA' in input data.
  1263.  
  1264.             (4) A MISSING command has been added that allows you to 
  1265.                 assign a missing value to a SORITEC constant.
  1266.  
  1267.             (5) A  LEGAL function has been added that scans a  data 
  1268.                 item for missing values.   
  1269.  
  1270.        The  operation of the MISSING command and LEGAL function are described 
  1271.   below.
  1272.  
  1273.  
  1274.        2.7.1  Missing Value Symbol Declaration
  1275.  
  1276.        SORITEC  constants  can be assigned missing values  with  the  MISSING 
  1277.   command.  The syntax of the command is:
  1278.  
  1279.             MISSING constant_name
  1280.  
  1281.   The  argument "constant_name" is defined to be a SORITEC constant with  the 
  1282.   value  MISSING  assigned.   Only one argument is permitted in  the  command 
  1283.   line.  Regardless of its prior type, the argument  is  always redefined  as  
  1284.   a  SORITEC  constant.   MISSING cannot assign a missing value to any  other 
  1285.   variable type.   You can,  however, assign missing values to other variable 
  1286.   types using the REVISE command, as the following example shows.
  1287.  
  1288.             The commands...               yield
  1289.  
  1290.             USE 1 3                          SERIES             
  1291.             FILL SERIES 1 2 3             .............         
  1292.             USE 3                     1   .    1.00000          
  1293.             MISSING X                 2   .    2.00000          
  1294.             REVISE SERIES=X           3   .    MISSING          
  1295.             USE 1 3                                               
  1296.             PRINT SERIES              
  1297.  
  1298.  
  1299.        2.7.2  Missing Value Logical Function
  1300.  
  1301.        The   LEGAL   function   returns the value 1 if a  data  item  is  not 
  1302.   MISSING  and zero otherwise.   This  enables  easy  conversion  of  MISSING 
  1303.   values to another value.
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.                                  20
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.        2.7.3  Imputation of Missing Values
  1320.  
  1321.        SORITEC  Sampler provides four options for replacing  missing  values.  
  1322.   Missing  values may be substituted by zero,  the series mean,  the interpo-
  1323.   lated  value  or the trend forecast.   The option is set  globally  by  the 
  1324.   IMPUTE command, i.e.,
  1325.  
  1326.             IMPUTE  [ZERO|MEAN|INTER|TREND|NONE]
  1327.  
  1328.   Normal  missing  value  processing  is  resumed when  the  NONE  option  is 
  1329.   executed.  Entering the command IMPUTE with no arguments returns the option 
  1330.   currently in effect.  The details of each option are as follows:
  1331.  
  1332.            ZERO substitutes 0 for each missing observation
  1333.  
  1334.            MEAN  replaces  each  observation with the mean  of  the 
  1335.            series during the current use period 
  1336.  
  1337.            INTER interpolates the range between the last two  known 
  1338.            non-MISSING values over the missing observations     
  1339.  
  1340.            TREND  fills  in  missing values with the  simple  trend 
  1341.            forecast for the series over the current use period.
  1342.  
  1343.            NONE stops implicit imputation of missing values
  1344.  
  1345.  
  1346.   2.8  Wildcards
  1347.  
  1348.        SORITEC now supports the '*' and '?' symbols as wildcard characters in 
  1349.   arguments.  The  wildcarding  scheme is a simple way to  reduce   the  time  
  1350.   spent  typing   and  viewing  output  (e.g.  from  the   SYMBOLS   command, 
  1351.   described  later in this chapter).  Currently,  wildcards are available for 
  1352.   use with the FORGET, GROUP, and SYMBOLS commands.
  1353.  
  1354.        The  rules  for  wildcard construction are simple.  An asterisk repre-
  1355.   sents  zero or more alphanumeric characters and a  question  mark   substi-
  1356.   tutes for any single character.   Commands which permit wildcards match all 
  1357.   the  names in the local workspace against the  wildcard pattern  and expand 
  1358.   the command line appropriately.
  1359.  
  1360.        The following examples explain wildcard processing in SORITEC.  Assume 
  1361.   that  the local  workspace contains the variables X,  XY,  XXY,  BBYB,  BB, 
  1362.   ABXYZ, and ABXY.  Then: 
  1363.  
  1364.           THESE WILDCARDS:     WOULD REFERENCE THESE ITEMS: 
  1365.  
  1366.                  *             X, XY, XXY, BBYB, BB, ABXYZ, ABXY
  1367.                  ?             X
  1368.                  B*            BBYB, BB
  1369.                  *B*           BBYB, BB, ABXYZ, ABXY
  1370.                  ?B??          BBYB, ABXY
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.                                  21
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.   2.9  Options
  1386.  
  1387.        Several  global  options  are  available  to  control  the  amount  of 
  1388.   printing,  depth of analysis,  etc.  These options are enabled and disabled 
  1389.   by the ON and OFF commands.   For example,  the command ON PLOT will  cause 
  1390.   residual  plots to be produced when an equation is estimated.   A  complete 
  1391.   list  of  available  options  with current settings will  be  displayed  by 
  1392.   SORITEC if an ON command is entered with no arguments.   Global options  in 
  1393.   SORITEC Sampler with their default settings are described in Appendix II.
  1394.  
  1395.        After  every  ON  or  OFF  command which changes an option,  an inter-
  1396.   nal  result  called ^FLAGS  is  stored  as  a   vector.    ^FLAGS  contains 
  1397.   information on the global options which are in effect immediately after the 
  1398.   ON or OFF command is executed.   It can be RECOVERed, retained in SORITEC's 
  1399.   workspace or stored in SORITEC databanks,  and can later be used to restore 
  1400.   global options to settings that were in effect when they were recovered.
  1401.  
  1402.        Global  options  are restored with the FLAGS command,  which  has  the 
  1403.   format:
  1404.  
  1405.             FLAGS flag_vector
  1406.    
  1407.   The argument "flag_vector" is the name of the vector to which the RECOVERed 
  1408.   SORITEC internal variable ^FLAGS has been written.  
  1409.  
  1410.        Note   that  flag  vectors  must  not  be  changed  in  any  way,   or 
  1411.   unpredictable  results may occur.   The FLAGS  command  exists  solely   to  
  1412.   restore  previous global option settings.   Furthermore,  the  ordering and 
  1413.   number  of the global options is subject to change  in  future  releases so 
  1414.   flag   vectors stored  on  SORITEC  databanks  may not restore the  options 
  1415.   desired if retrieved by a later release of SORITEC.  
  1416.  
  1417.  
  1418.   2.10  Recovering Internal SORITEC Variables
  1419.  
  1420.        The RECOVER command allows the user to access and manipulate secondary 
  1421.   results  which  have  been generated and stored  under  internal  names  by 
  1422.   SORITEC  commands.   Either  one or two arguments are associated  with  the 
  1423.   command, which has the syntax:
  1424.  
  1425.             RECOVER [name] internal_name
  1426.  
  1427.   The  "internal_name"  is  an internal system name  which  identifies  which 
  1428.   secondary result to RECOVER from SORITEC for later use.  Legal system names 
  1429.   of  secondary results that can be recovered are given in Appendix  I.   The 
  1430.   first argument,  "name", is optional and is a user-defined name assigned to 
  1431.   the  recovered item.   If omitted,  the recovered name is identical to  the 
  1432.   internal system name.  
  1433.  
  1434.        In  addition  to the RECOVER command,  SORITEC allows you to  directly 
  1435.   reference  internal  system  names  by prefixing an  up-carat  (^)  to  the 
  1436.   variable name.  For example, the commands:
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.                                  22
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.             RECOVER fitted_values yfit
  1452.   and
  1453.             fitted_values = ^yfit
  1454.  
  1455.   would  both  recover the fitted values of the dependent variable  and  copy 
  1456.   them  into  the variable named "fitted_values".   SORITEC  internal  system 
  1457.   names can be referenced directly in most situations.   For example, parame-
  1458.   ters and time-series variables that are internal system names can be  reas-
  1459.   signed  with the SET command and can be referenced in transformation opera-
  1460.   tions.   Equations,  matrices,  vectors and GROUPS can also be  referenced.  
  1461.   However,  reassignment  still  requires  the use of  the  RECOVER  command.  
  1462.   Internal  names  cannot be saved to a databank without being reassigned  to 
  1463.   another variable.
  1464.  
  1465.        SORITEC will not confuse its own internal system names with  variables 
  1466.   or  other identically-named data items that the user has defined in his/her 
  1467.   program.   The type of the first argument (variable,  vector,  constant, or 
  1468.   other SORITEC form of data organization) is automatically defined or  rede-
  1469.   fined to the type required by the second argument.
  1470.  
  1471.        Secondary results need not be recovered immediately.  All such results 
  1472.   remain  available  until a command is executed which stores  other  results 
  1473.   under the same internal system name.  In that event, the prior results held 
  1474.   under  that  internal system name are lost.   Note that  some  intermediate 
  1475.   results  are  retained  under internal system names only if the  user  sets 
  1476.   appropriate flags with the ON command.   Check the default switch  settings 
  1477.   associated  with each command to ensure that intermediate results are auto-
  1478.   matically saved.
  1479.  
  1480.        Note  that  some  intermediate  results  are  retained  only  if   the 
  1481.   appropriate  flags are set by the ON command.   The internal variables  and 
  1482.   global options that enable them are:
  1483.  
  1484.        Internal             Description                  Flag Setting        
  1485.         Name                                             to Save Value
  1486.  
  1487.        ^CCOR           Coefficient Correlation Matrix     OFF NOMATS 
  1488.        ^VCOV           Coefficient Covariance  Matrix     OFF NOMATS 
  1489.        ^XTABLE         Crosstabulation Table              OFF NOMATS 
  1490.        ^RAWEQ          Raw Forecasting Equation           ON  RAWEQ  
  1491.  
  1492.   See Appendix II for the default values for these options.
  1493.  
  1494.  
  1495.   2.11  SORITEC'S Symbol Table
  1496.  
  1497.        Any time during an interactive or batch session you can determine what 
  1498.   item  names  are currently active in SORITEC's workspace by  examining  the 
  1499.   symbol  table.   SORITEC's symbol table is listed on the output device when 
  1500.   the command:
  1501.  
  1502.             SYMBOLS [ALL]
  1503.  
  1504.   is entered.  The symbol table lists each item's name, storage address, item 
  1505.   type and length.   Including the optional keyword "ALL" in the command line 
  1506.  
  1507.  
  1508.                                  23
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.   print  all  currently active SORITEC internal names in  addition  to  user-
  1518.   defined items.  SYMBOLS accepts wildcards so that a selective search of the 
  1519.   symbol table can be made.
  1520.  
  1521.        Items  can  be  removed from SORITEC's symbol table  by  invoking  the 
  1522.   FORGET command which is of the form:
  1523.  
  1524.             FORGET [item_1] [item_2] ... [item_n]
  1525.  
  1526.   Each "item_i" is a currently active item in SORITEC's workspace, as identi-
  1527.   fied  from  the symbol table.   The command may have up to  100  arguments.  
  1528.   FORGET  accepts wildcards so that selected items from the symbol table  can 
  1529.   be removed.  For example, 
  1530.  
  1531.             FORGET ab*
  1532.  
  1533.   removes  all  items  that begin with the characters "ab"  from  the  symbol 
  1534.   table.   All  items from the symbol table are removed by entering the  wil-
  1535.   dcard symbol "*" in place of item names, i.e.,
  1536.  
  1537.             FORGET *
  1538.  
  1539.   FORGET does not affect the contents of attached SORITEC databanks nor  does 
  1540.   it return databanks.  
  1541.  
  1542.        Note  that FORGET erases item names from the SORITEC symbol table  but 
  1543.   does  NOT remove the data from the workspace.   If you exceed the workspace 
  1544.   limitation,  FORGETting items from the symbol table will not free the stack 
  1545.   space  they  occupied.   You must QUIT the current  session  and  re-invoke 
  1546.   SORITEC from DOS to free the workspace.
  1547.  
  1548.   2.12  Minor Control Statements
  1549.  
  1550.        Several  commands  alter default settings other than those  identified 
  1551.   with  global  options (ON/OFF) or pass information to SORITEC  for  use  in 
  1552.   output listings.
  1553.  
  1554.  
  1555.        2.12.1  Specify Width of Output Device
  1556.  
  1557.        The  width  of output from SORITEC Sampler can be adjusted  using  the 
  1558.   WIDTH command, i.e.,
  1559.  
  1560.             WIDTH number
  1561.  
  1562.   The argument,  "number", must be a numeric value between 50 and 150.  Argu-
  1563.   ments  outside this range will generate an error message,  leaving the pre-
  1564.   vious WIDTH definition intact.   The default value for interactive usage is 
  1565.   80 characters; in batch mode, the default value is 132 characters.
  1566.  
  1567.  
  1568.        2.12.2  Change Length of Input Line
  1569.  
  1570.        The  length of the input line that SORITEC Sampler can accept  may  be 
  1571.   changed by the SCAN command, which has the format:
  1572.  
  1573.  
  1574.                                  24
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.             SCAN number
  1585.  
  1586.   The  argument,  "number",  must  be a numeric quantity between 50 and  150.  
  1587.   Arguments  outside this range will cause an error message and the  existing 
  1588.   SCAN will remain in effect.   The default value for scan in interactive and 
  1589.   batch modes is 80 characters.
  1590.  
  1591.  
  1592.        2.12.3  Reset Maximum Error Limit
  1593.  
  1594.        The  maximum error limit can be reset in SORITEC batch jobs  to  alter 
  1595.   the number of NONFATAL and SERIOUS errors a job can commit before the batch 
  1596.   processor  abandons compilation and execution.   The syntax of the  command 
  1597.   is:
  1598.  
  1599.             MAXERR number
  1600.  
  1601.   where "number" is a numeric quantity that defines the new error limit.  The 
  1602.   default setting for MAXERR is 25.
  1603.  
  1604.  
  1605.        2.12.4  Turn Batch Listing On or Off
  1606.  
  1607.        Listings of batch job commands are turned on or off by the ONLIST     
  1608.   and OFFLIST commands, respectively.  The default setting is OFFLIST.
  1609.  
  1610.  
  1611.        2.12.5  Label Batch Output Pages
  1612.  
  1613.        Up to 120 characters of label information can be printed to a  SORITEC 
  1614.   Sampler  batch  job  listing using the TITLE command.   The syntax  of  the 
  1615.   command is:
  1616.  
  1617.             TITLE [label]
  1618.  
  1619.   The  output,  "label"  will appear on the third line of each  output  page, 
  1620.   following the JOB statement.   A TITLE command with no argument causes  the 
  1621.   third  line of succeeding pages to be blank.   Title labels may not contain 
  1622.   the symbols ;  ,  $ , or &.  As many TITLE commands as needed can be placed 
  1623.   in a job.   They are executed as they are encountered in the job stream and 
  1624.   label all succeeding pages until another TITLE command is executed.
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.                                  25
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.                                    Chapter 3
  1655.                              Data Entry and Output
  1656.  
  1657.  
  1658.   3.0  Introduction
  1659.  
  1660.        Data may be imported or exported to or from SORITEC Sampler in several 
  1661.   formats,  including SORITEC Alternate Load (SAL) files,  DIF files, FORTRAN 
  1662.   formatted  files,  SORITEC Database Files (SDB),  and keyboard  entry.   In 
  1663.   addition,  data  may  be  displayed at the terminal either  in  tabular  or 
  1664.   graphical  format.   This  section describes the available data  input  and 
  1665.   output options with detailed  descriptions of the syntax and examples.
  1666.  
  1667.        The  most  common  mistakes that users make with data  entry  are  (a) 
  1668.   forgetting to move the file into the current working directory, (b) forget-
  1669.   ting  to add the correct file extension to the file when it is created,  or 
  1670.   (c) using a file extension in SORITEC.  In the latter case, SORITEC Sampler 
  1671.   always  appends the appropriate file extension to the file name so that you 
  1672.   need  not specify the extension in SORITEC Sampler file  manipulation  com-
  1673.   mands.  If you specify a SAL file as READ(MYFILE.SAL), SORITEC Sampler will 
  1674.   look for MYFILE.SAL.SAL.   On the other hand, READ(MYFILE) will not execute 
  1675.   if you have forgotten to append a .SAL extension to the name of the  stored 
  1676.   DOS file that you want to read.
  1677.  
  1678.  
  1679.   3.1 SORITEC Alternate Load (SAL) Files
  1680.        
  1681.        SAL  files  are the easiest way to import large amounts of  data  into 
  1682.   SORITEC  Sampler.   They  are  also a convenient means of  exporting  data, 
  1683.   particularly  if  you  want to move data to SORITEC  on  another  (non-DOS) 
  1684.   computer.   SAL files are essentially free-field ASCII files with a special 
  1685.   header.   If  you already have data in a tabular format,  you  can  quickly 
  1686.   create  a  SAL file by editing the table with any standard text  editor  or 
  1687.   word processor.  SAL files are composed of three parts, (1) the header, (2) 
  1688.   the data, and (3) the data terminator.  
  1689.  
  1690.        The  header  conveys  information  necessary for  SORITEC  Sampler  to 
  1691.   correctly read the data.   Two commands are used to define the header  sec-
  1692.   tion.   The  first is the USE period which tells SORITEC Sampler what  time 
  1693.   period  the data spans.   This is followed by the READ command which  tells 
  1694.   SORITEC  Sampler what variable name to assign to the data.   The final item 
  1695.   following the data is a ';' that delimits each data section in a data file.  
  1696.   The final line in a SAL file is an END statement that tells SORITEC Sampler 
  1697.   to expect no more data for the READ statement being executed.
  1698.  
  1699.        An example demonstrates the structure of a SORITEC SAL file.  We  wish 
  1700.   to import the following data into SORITEC Sampler:
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.                                  26
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.                    YEAR     GNP      TAXES    PRIME    
  1716.                    1970    1423.5    455.6    10.75    
  1717.                    1971    1564.2    678.3     9.76    
  1718.                    1972    1688.9    778.4    13.45    
  1719.  
  1720.   The  following file,  named MACRO.SAL (SAL files must end with a .SAL  file 
  1721.   extension), is a valid SORITEC SAL file.  
  1722.  
  1723.             USE 1970 1972
  1724.             READ GNP TAXES
  1725.             1423.5 455.6 1564.2 678.3
  1726.             1688.9 778.4 ;
  1727.             READ PRIME
  1728.             10.75 9.76 13.45 ;
  1729.             END
  1730.  
  1731.   SAL  files can contain any number of data series.   Furthermore,  data sec-
  1732.   tions (sections of a SAL file delimited by an END statement) can be stacked 
  1733.   as necessary and imported using multiple reads (or exported using  multiple 
  1734.   writes)  in  SORITEC Sampler.  More than one variable can be input  with  a 
  1735.   single  READ.   The  USE  period can be changed as often  as  necessary  to 
  1736.   conform to the data.  
  1737.  
  1738.  
  1739.        3.1.1  SAL File Input
  1740.  
  1741.        SAL  files  are imported into SORITEC Sampler using the  READ  command 
  1742.   which has the format:
  1743.  
  1744.             READ(filename)
  1745.  
  1746.   As  the USE period and all variable names are already predefined in the SAL 
  1747.   file headers,  no further information is needed.   If referenced simply  as 
  1748.   above,  the  SAL file,  "filename" must exist in the current directory with 
  1749.   the  filename  "filename.sal".   If  the  SAL file exists  on  a  drive  or 
  1750.   directory other than the current one,  it must be referenced within  single 
  1751.   quotations, i.e.
  1752.  
  1753.             READ('d:filename')
  1754.   or
  1755.             READ('\path\filename')
  1756.  
  1757.   A  READ  command  imports data from a SAL file until it encounters  an  END 
  1758.   statement.   A later READ of the same file would then begin importing  data 
  1759.   following  this delimiter until the next END statement is reached,  and  so 
  1760.   on.   No  section of a SAL file can be re-read,  since the file is  sequen-
  1761.   tially organized.
  1762.  
  1763.  
  1764.        3.1.2  SAL File Output
  1765.  
  1766.        Data may be exported from SORITEC Sampler in SAL file format using the 
  1767.   PUNCH command.  The format of the PUNCH command is:
  1768.  
  1769.             PUNCH series_1 series_2 ...
  1770.  
  1771.  
  1772.                                  27
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.   PUNCH  creates  a  SAL file named PUNCH1.SAL in the  current  directory  or 
  1782.   drive.  Salfile data may not be directed to any other file name from within 
  1783.   Sampler.
  1784.  
  1785.        Before  writing  data to a SAL file the desired USE period MUST be  in 
  1786.   effect,  and data series on the command line must be of the same periodici-
  1787.   ty.   SORITEC  Sampler  appends the extension .SAL to the file when  it  is 
  1788.   opened.   If  PUNCH1.SAL already exists in the directory,  SORITEC  Sampler 
  1789.   will  over-write the existing file with the new one.   Note that SAL  files 
  1790.   remain open until closed by a QUIT command.  Multiple PUNCH commands to the 
  1791.   same  file will therefore append the data to the referenced SAL  file.   An 
  1792.   END delimiter is appended to the file when it is closed.
  1793.    
  1794.  
  1795.   3.2 Data Interchange Format (DIF) Files
  1796.  
  1797.        The  Data  Interchange Format (DIF) file format has emerged as  a  de-
  1798.   facto  standard for exchanging data  between  popular  PC  packages    such   
  1799.   as   LOTUS  1-2-3,  DBASE  II,  SUPERCALC, and various stand-alone graphics 
  1800.   packages.   Because of this, SORITEC Sampler has  been  equipped  with  DIF  
  1801.   file input and output  facilities.    The  format  of  the  DIF commands is 
  1802.   subject to change in future SORITEC releases.
  1803.  
  1804.  
  1805.        3.2.1  DIF File Input
  1806.  
  1807.        SORITEC Sampler imports DIF files through the READDIF command.   There 
  1808.   are  two forms of the READDIF command.   If variable names are in  the  DIF 
  1809.   file, then the command is simply:
  1810.  
  1811.            READDIF(filename)
  1812.  
  1813.   If variable names are not in the DIF file, the command line is:
  1814.  
  1815.            READDIF(filename) series_1 series_2 ...
  1816.  
  1817.   SORITEC  Sampler  supports  subdirectory  addressing  within  the  filename 
  1818.   reference.   If  the DIF file exists on a drive or directory other than the 
  1819.   current one, it must be referenced within single quotations, i.e.
  1820.  
  1821.             READDIF('d:filename') [series_1 series_2 ...]
  1822.   or
  1823.             READDIF('\path\filename') [series_1 series_2 ...]
  1824.  
  1825.  
  1826.        READDIF  does not read dates in DIF files so an appropriate USE period 
  1827.   must be in effect before the command is executed.
  1828.  
  1829.        At this writing,  READDIF expects to  find  ONLY  time-series data  in 
  1830.   the  input DIF file.   Any spreadsheet cells that do not contain legal num-
  1831.   bers  are  interpreted as 'MISSING' values  by SORITEC  Sampler.     As   a  
  1832.   consequence,   SORITEC-generated  DIF  files that contain data  other  than 
  1833.   time-series and that are later read by SORITEC Sampler will  NOT  generally  
  1834.   produce  useful results.
  1835.  
  1836.  
  1837.  
  1838.                                  28
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.        There  are  two  ways that data can be organized in LOTUS to  pass  it  
  1848.   to  SORITEC Sampler: with and without labels.  In either case, the data are 
  1849.   interpreted under the currently active USE period in SORITEC Sampler.   The  
  1850.   USE interval is never derived from a DIF file's contents.
  1851.  
  1852.        If the columns are to be labeled,  the names must appear in ROW 1  and 
  1853.   if the  rows  are  to be labeled,   the names must appear in COLUMN A.  For 
  1854.   example, if the following worksheet is written to  'NATIONAL.DIF' using the 
  1855.   LOTUS translate function:
  1856.  
  1857.              A        B        C        D
  1858.         +------------------------------------
  1859.       1 |     GNP    TAXES    PRIME
  1860.       2 |  1423.5    455.6    10.75
  1861.       3 |  1564.2    678.3     9.76
  1862.       4 |  1688.9    778.4    13.45    
  1863.  
  1864.   then NATIONAL.DIF can be read into SORITEC Sampler using the commands:
  1865.  
  1866.            USE 1970 1972
  1867.            READDIF(NATIONAL)
  1868.  
  1869.   READDIF can read variable names up to 32 characters in length.
  1870.  
  1871.        The  unlabelled  method is less convenient  because  correct  variable  
  1872.   names must be specified in the READDIF command.   In the following example, 
  1873.   READDIF  assumes that the desired variables are stored  in  column   order. 
  1874.   If column D was not empty and the USE specified four observations, then the 
  1875.   data  would   be  interpreted in  row order.   The following table  written 
  1876.   from LOTUS to the file NATIONAL.DIF:
  1877.  
  1878.  
  1879.               A        B        C        D
  1880.         +------------------------------------
  1881.       1 |  1423.5    455.6    10.75
  1882.       2 |  1564.2    678.3     9.76
  1883.       3 |  1688.9    778.4    13.45
  1884.  
  1885.   can be read into SORITEC Sampler with the commands:
  1886.  
  1887.            USE 1970 1972
  1888.            READDIF(NATIONAL) GNP TAXES PRIME
  1889.  
  1890.   with the same results as in the labelled example.
  1891.  
  1892.        Input data outside the current USE interval are ignored.   If insuffi-
  1893.   cient   data  exist  to  satisfy  the  current USE period,   the  remaining 
  1894.   observations  are  set  to  'MISSING'.    READDIF  tries  to  do  something 
  1895.   reasonable   with  any  input  DIF  file  by first considering the  current 
  1896.   USE  interval,  then examining the DIF file contents.    One should   spot-
  1897.   check READDIF input results to ensure that the rows and columns are  inter-
  1898.   preted as intended.
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904.                                  29
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.        3.2.2  DIF File Output
  1914.  
  1915.        DIF  files  may  be exported from SORITEC Sampler using  the  PUNCHDIF 
  1916.   command.  This command has the format:
  1917.  
  1918.              PUNCHDIF[(filename)] arg_1 arg_2 arg_3 ... arg_n
  1919.  
  1920.   where the arguments may be time-series,   parameters,   constants,  vectors   
  1921.   or matrices.   Variable names in the argument list can be no longer than 10 
  1922.   characters.   Otherwise,  longer  names  are  truncated.   SORITEC  Sampler 
  1923.   creates  a file called 'filename.DIF' which can be translated into a  LOTUS 
  1924.   worksheet  using  LOTUS'  translate utility.   If the filename is  omitted, 
  1925.   SORITEC Sampler creates a file named PUNCH1.DIF.  You can redirect DIF file 
  1926.   output  to a file on another drive or directory other than the current  one 
  1927.   using the same conventions as the READDIF command.
  1928.  
  1929.        Note that the following rules apply:
  1930.  
  1931.            (1) Only  observations active under the current USE com-
  1932.                mand are written to the file.
  1933.  
  1934.            (2) PUNCHDIF  re-orders its arguments (if  required)  so 
  1935.                that  all  SERIES  are written  first,  followed  by 
  1936.                CONSTANT items, and lastly, VECTOR items.
  1937.  
  1938.            (3) PARAMETERS are output as CONSTANTS.
  1939.  
  1940.            (4) MATRICES are output as VECTORS with M * N elements.
  1941.  
  1942.            (5) SORITEC 'MISSING' values are output as 'NA'.
  1943.  
  1944.   Most of these considerations are demonstrated by the following example:
  1945.  
  1946.            USE 1984Q1 1984Q3
  1947.            FILL GNP 1423.5 1564.2 1688.9  
  1948.            FILL TAXES 455.6 678.3 778.4
  1949.            FILL PRIME 10.75 9.76 13.45
  1950.            SET CONST=35.
  1951.            CONSTANT CONST2 223
  1952.            PARAMETER C3
  1953.            VECTOR VVV 1 2 3
  1954.            VECTOR V2 4 3 2 1
  1955.            USE 1984Q2 1984Q4
  1956.            PUNCHDIF(ADIFFILE) V2 VVV C3 CONST2 CONST &
  1957.                 GNP TAXES PRIME
  1958.  
  1959.   'ADIFFILE.DIF'   is  created   and  results   in   the   following  spread-
  1960.   sheet after being read into LOTUS 1-2-3:
  1961.  
  1962.  
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.                                  30
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.              A        B        C        D         E        F
  1981.         +--------------------------------------------------------
  1982.       1 |    TIME      GNP    TAXES    PRIME
  1983.       2 |  1984Q2   1564.2    678.3     9.76
  1984.       3 |  1984Q3   1688.9    778.4    13.45
  1985.       4 |  1984Q4       NA       NA       NA
  1986.       5 |CONSTANT       C3        0
  1987.       6 |CONSTANT   CONST2      223
  1988.       7 |CONSTANT    CONST       35
  1989.       8 |  VECTOR      VVV        1        2        3
  1990.       9 |  VECTOR       V2        4        3        2         1
  1991.  
  1992.  
  1993.   3.3  Formatted Input and Output
  1994.  
  1995.        SORITEC  Sampler supports formatted input and output of data and text.  
  1996.   The  command syntax for formatted I/O is similar to FORTRAN formatted  I/O.  
  1997.   In  other words,  the read or write statement refers to a FORMAT  statement 
  1998.   number that contains the format for the input or output.
  1999.  
  2000.        The FORMAT command has a statement number, the command name FORMAT and 
  2001.   a legal format specification, i.e.,
  2002.  
  2003.             statement_number FORMAT  format_specification
  2004.  
  2005.   The  statement_number is always a positive integer between 1 and 9999.   It 
  2006.   must be unique within any given session or batch job.  In other words, once 
  2007.   a FORMAT is entered and identified by a statement number,  no other command 
  2008.   can   have  the  same  command  number  during  that  session.    Allowable 
  2009.   "format_specifications"  are  identical  to  those  permitted  in   FORTRAN 
  2010.   programs.   Consult  any  FORTRAN  reference manual for details  on  FORMAT 
  2011.   statements.
  2012.  
  2013.  
  2014.             3.3.1  FORTRAN Formatted Input     
  2015.  
  2016.        Although free-format SAL files are the preferred way to import data to 
  2017.   SORITEC Sampler, there may be occasions when data are structured so that it 
  2018.   is necessary to use an explicit format statement.   Standard  FORTRAN-style 
  2019.   format statements are used.   Sampler can read formatted data directly from 
  2020.   the terminal or from a file.  The syntax for reading formatted data is:
  2021.  
  2022.             READ([filename] [statement_number]) series_1 series_2 ...
  2023.  
  2024.   Here,  the "statement_number" refers to a previously defined format  state-
  2025.   ment.   The  optional data file identified by "filename" must have  a  .SAL 
  2026.   file  extension.   If  omitted,  SORITEC  Sampler reads the data  from  the 
  2027.   current input device,  i.e. the terminal or a SAC file if a command file is 
  2028.   being  executed.   If  the format statement number  is  omitted,  data  are 
  2029.   assumed to be free-formatted.
  2030.  
  2031.        Input  file redirection is supported by the READ statement so that you 
  2032.   can read a formatted file from a drive or directory other than the  current 
  2033.   one if it is referenced within single quotations, i.e.,
  2034.  
  2035.  
  2036.                                  31
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.             READ('d:filename' statement_number) series_1 series_2 ...
  2047.   or
  2048.             READ('\path\filename' statement_number) &
  2049.                                   series_1 series_2 ...
  2050.  
  2051.        Unlike  regular SAL files,  formatted files cannot be read by multiple 
  2052.   READ  statements;   all  data from the file must be imported at  one  time.  
  2053.   Normally, formatted READ commands expected data to be organized in columns.  
  2054.   However, if the STREAMIO option is enabled by the ON STREAMIO command, data 
  2055.   can  be  read by rows.   For example,  to read the  text  file  MACRO1.SAL, 
  2056.   including the headers, given below:
  2057.  
  2058.        KEY MACROECONOMIC INDICATORS
  2059.  
  2060.                1970    1971    1972
  2061.   GNP         1423.5  1564.2  1688.9
  2062.   TAXES        455.6   678.3   778.4
  2063.   PRIME RATE   10.75    9.76   13.45;
  2064.  
  2065.   the following command sequence would be required:
  2066.  
  2067.             ON STREAMIO
  2068.             USE 1970 1972
  2069.             101 FORMAT(///10X,3F8.1)  
  2070.             READ(MACRO1 101) GNP
  2071.             102 FORMAT(10X,3F8.2)
  2072.             READ(MACRO1 102) TAXES
  2073.             READ(MACRO1 102) PRIME
  2074.  
  2075.        Although  this  is almost as straightforward as for standard SAL  file 
  2076.   input, a FORMAT statement used and reference to the FORMAT statement number 
  2077.   is  made in the READ statement.  Also unlike standard SAL file  reads,  you 
  2078.   must  explicitly reference the variable list in the READ statement and  the 
  2079.   USE  period  must  be set in the main program before the  READ  command  is 
  2080.   executed.  The file must still be terminated with a ";" delimiter.
  2081.  
  2082.  
  2083.             3.3.2  FORTRAN Formatted Output
  2084.  
  2085.        Data  and  text may be printed in a prespecified format by  the  WRITE 
  2086.   command.   FORTRAN  formatted output can be directed to either the terminal 
  2087.   or a file.  The general format for the formatted write command is:
  2088.  
  2089.             WRITE([filename] [statement_number]) var_1 var_2 ...
  2090.  
  2091.   The  statement  number  refers to a previously  defined  FORMAT  statement.  
  2092.   If  the  optional "filename" is included,  SORITEC Sampler writes the  data 
  2093.   according to the format statement associated with "statement_number" to the 
  2094.   file "filename.LST".   Otherwise,  the data are written to the terminal  or 
  2095.   the  current  output device if DOS redirection has been  invoked.   If  the 
  2096.   statement  number is omitted,  data are printed in a list format similar to 
  2097.   the format used to PRINT variables at the terminal, e.g.,
  2098.  
  2099.  
  2100.  
  2101.  
  2102.                                  32
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.                                   VAR_A      
  2112.                              ................
  2113.                              .               
  2114.                        1     .    1.00000    
  2115.                        2     .    2.00000    
  2116.                        3     .    2.50000    
  2117.                        4     .    3.50000    
  2118.                        5     .    5.00000    
  2119.  
  2120.   Variables in the variable list may be time-series, constants or parameters.  
  2121.   Up to 100 variables are allowed in a variable list.       
  2122.  
  2123.        When  time-series  or  vectors are encountered in the  variable  list, 
  2124.   SORITEC  Sampler  writes  all active observations to  the  terminal  before 
  2125.   writing  the next variable in the list.   Placing parentheses around  time-
  2126.   series variables in the variable list, however, will direct SORITEC Sampler 
  2127.   to print one value from each variable in turn,  allowing you to print time-
  2128.   series in columns. 
  2129.  
  2130.             WRITE([filename] statement_number) constant_1 &
  2131.                             (time_series_1 time_series_2) constant_2
  2132.  
  2133.   For example, the commands:
  2134.  
  2135.             USE 1973Q1 1973Q4
  2136.             102 FORMAT(15X,'  GNP    CONSUMPTION  INVESTMENT'//10X,(3F11.1))
  2137.             WRITE(102) (gnp consump invest)
  2138.  
  2139.   produce the following output.   
  2140.  
  2141.                    GNP    CONSUMPTION  INVESTMENT
  2142.                   475.7      301.4       71.0
  2143.                   468.3      306.2       70.1
  2144.                   487.7      312.8       82.3
  2145.                   490.7      320.8       65.6
  2146.  
  2147.   Constants and parameters cannot be included in parentheses.   
  2148.  
  2149.  
  2150.   3.4  Keyboard Entry
  2151.  
  2152.        Data may be entered directly from the keyboard using the FILL command, 
  2153.   which has the format:
  2154.  
  2155.             FILL variable_name value_list
  2156.  
  2157.   where  "value_list"  is  the  set  of  values  assigned  to  the   variable 
  2158.   "variable_name".  For example,
  2159.  
  2160.        FILL VAR_A 1 4 2 5 7 8
  2161.  
  2162.   creates a new series VAR_A with the six specified values.  
  2163.  
  2164.        When there is no USE command in effect, a FILL command counts the data 
  2165.   items,  stores them as undated data and defines an appropriate USE interval 
  2166.  
  2167.  
  2168.                                  33
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.   which  is assumed in later commands or until the USE period  is  redefined.  
  2178.   If  there are too many or too few observations entered for the current  USE 
  2179.   period,  an  error  message  is generated unless the ON  RAGGED  option  is 
  2180.   enabled.  The option command ON RAGGED permits entry, through FILL, of data 
  2181.   series that are shorter than the current USE interval without generating an 
  2182.   error.  Unaccounted data are assigned MISSING values when this condition is 
  2183.   encountered.   FILL will not accept data series longer than the current USE 
  2184.   period under any circumstances.  FILL is commonly used to enter data series 
  2185.   that consist of few observations or to extend current data series.
  2186.  
  2187.  
  2188.   3.5  Output of Data to the Terminal
  2189.  
  2190.        Data may be output to the terminal in both tabular and graphical form.  
  2191.   If necessary,  tables and graphs can be routed to the printer by using  the 
  2192.   DOS "Ctrl-P" switch before entering the appropriate command.
  2193.  
  2194.  
  2195.        3.5.1  Tabular Display
  2196.  
  2197.        The simplest data display is produced by the PRINT command.   Any data 
  2198.   series,  vector,  constant,  parameter,  equation or GROUP can be displayed 
  2199.   using this command, which has the form:
  2200.  
  2201.             PRINT arg_1 arg_2 arg_3 ...
  2202.  
  2203.   Types  of  arguments  to be printed may be mixed,  but  this  is  generally 
  2204.   inadvisable.   Since  SORITEC does not put unlike items on the same  lines, 
  2205.   mixing  types  or periodicities indiscriminately can generate lengthy  out-
  2206.   puts.   The PRINT command can have up to 100 arguments,  each of which must 
  2207.   be  a  legal SORITEC name.   Lagged variables may be specified in  a  PRINT 
  2208.   command.   To display data from the members of a GROUP, the ON GROUP option 
  2209.   must be active.   PRINT displays the names of GROUP members if OFF GROUP is 
  2210.   enabled.
  2211.  
  2212.        Data may be output to the terminal in specified formats and mixed with 
  2213.   text using the WRITE command.   Refer to Section 3.3.2 for a description of 
  2214.   this command.
  2215.  
  2216.  
  2217.        3.5.2  Graphical Display
  2218.  
  2219.        Two  types of graphical displays are available from  SORITEC  Sampler.  
  2220.   Both  produce line printer-style graphics.   SORITEC's estimation  commands 
  2221.   can  also produce medium resolution residuals plots on systems  with  color 
  2222.   graphics capability.  These are discussed in Section 10.2.11.
  2223.  
  2224.        Multi-variable   plots  of  time-series  or  cross-section  data   are 
  2225.   generated by the PLOT command, which has the form:
  2226.  
  2227.             PLOT series_1 symbol_1 series_2 symbol_2 ...
  2228.  
  2229.   The PLOT command produces a line printer plot of observation number against 
  2230.   up  to nine variables at once.   Plotting symbols must be specified in  the 
  2231.   command  line  for each variable to distinguish plotted  values.   Plotting 
  2232.  
  2233.  
  2234.                                  34
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243.   symbols may be alphanumeric (A-Z, 0-9) or the characters +, -, * ,  /, =.
  2244.  
  2245.        If two variables,  at some observation,  are nearly equal so that they 
  2246.   occupy  the  same position on the screen,  only the symbol for the  latter-
  2247.   named variable is displayed.   The horizontal scale is determined automati-
  2248.   cally  so that all data values can be plotted.   The WIDTH command  can  be 
  2249.   used  to inform SORITEC Sampler that more (or less) than 72 characters  can 
  2250.   be  output  on  a single line.   In this case,  the width of  the  plot  is 
  2251.   adjusted accordingly, e.g., WIDTH 132.
  2252.  
  2253.        To  generate  meaningful output,  all plotted  variables  should  have 
  2254.   roughly the same range of values.   Otherwise, some multiplicative or addi-
  2255.   tive scaling may be necessary.
  2256.  
  2257.  
  2258.  
  2259.  
  2260.  
  2261.  
  2262.  
  2263.  
  2264.  
  2265.  
  2266.  
  2267.  
  2268.  
  2269.  
  2270.  
  2271.  
  2272.  
  2273.  
  2274.  
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280.  
  2281.  
  2282.  
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.                                  35
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.        The  relationship between two variables can be illustrated graphically 
  2310.   via the SCATTER command, which is specified as:
  2311.  
  2312.             SCATTER series_1 series_2
  2313.  
  2314.   SCATTER  generates  a scatter diagram with the variable referenced  in  the 
  2315.   first  argument  plotted  with respect to the vertical or  Y-axis  and  the 
  2316.   variable  referenced in the second argument plotted against the  horizontal 
  2317.   or X-axis.  Lagged variables are permitted.
  2318.  
  2319.        The  graph  size is dependent upon the number of characters  that  can 
  2320.   appear on a line.   The default value is 72 but can be changed by the WIDTH 
  2321.   command.
  2322.  
  2323.  
  2324.   3.6  SORITEC DataBank Files
  2325.  
  2326.        SORITEC DataBank (.SDB) files are the most convenient means of acces-
  2327.   sing  data  AFTER  the data have been entered into  SORITEC  Sampler.   The 
  2328.   databanking facility has its own set of commands for accessing and managing 
  2329.   data.  These commands are described in the next chapter.
  2330.  
  2331.  
  2332.  
  2333.  
  2334.  
  2335.  
  2336.  
  2337.  
  2338.  
  2339.  
  2340.  
  2341.  
  2342.  
  2343.  
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.  
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.                                  36
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.                                    Chapter 4
  2381.                          SORITEC DataBank (SDB) Files
  2382.  
  2383.  
  2384.   4.0  Introduction
  2385.  
  2386.        SORITEC  databanks are the key to using SORITEC  Sampler  efficiently.  
  2387.   SDB files can store data series,  equations,  matrices,  vectors,  scalars, 
  2388.   parameters,  namelists  and multiple equation models.   SORITEC Sampler can 
  2389.   store  an  unlimited  number of items if enough disk  space  is  available.  
  2390.   Planned  future  enhancements include the ability to store and recall  user 
  2391.   procedures, report formats, data descriptors and online "HELP" text.
  2392.  
  2393.        SDB  files are constructed in a "knapsack" database  arrangement.   In 
  2394.   effect,  you can throw anything you want into an SDB file and the recall it 
  2395.   by name later.   There is no need to specify the type of the data item, its 
  2396.   length, etc; SORITEC Sampler keeps track of that for you.
  2397.  
  2398.        The  commands  necessary  to  create  and  manipulate  SDB  files  are  
  2399.   straightforward and easy to learn.  The complete list is as follows.
  2400.  
  2401.  
  2402.   4.1 Create a Databank
  2403.  
  2404.        CREATE constructs and initializes a SORITEC databank.   The only argu-
  2405.   ment  in  the  command line is the name of the database that  you  want  to 
  2406.   create.  For example,
  2407.  
  2408.             CREATE filename
  2409.  
  2410.   will create a file called filename.SDB for future use.   The CREATE command 
  2411.   creates the databank on the default drive and directory.  However, the file 
  2412.   can  be created on an alternative drive or directory by enclosing the drive 
  2413.   specification and filename in single quotations, e.g.
  2414.  
  2415.             CREATE 'd:filename'
  2416.   or
  2417.             CREATE '\path\filename'
  2418.  
  2419.   Once  the database is created,  it remains open for I/O until either (a)  a 
  2420.   different  database is accessed,  (b) the file is RETURNed,  or (c) SORITEC 
  2421.   Sampler is terminated.
  2422.  
  2423.  
  2424.   4.2  Access a Databank 
  2425.  
  2426.        ACCESS  opens  a SORITEC databank for use in the current job  session.  
  2427.   The general form of the command is:
  2428.  
  2429.             ACCESS filename
  2430.  
  2431.  
  2432.                                  37
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.   The database must already exist in the current directory as  "filename.SDB" 
  2443.   or  an error message is generated.   Once a database is  ACCESSed,  SORITEC 
  2444.   Sampler  automatically  copies  the requested data items  referenced  in  a 
  2445.   command into the workspace if it is not already there.  ACCESS automatical-
  2446.   ly returns any database which is currently open.
  2447.  
  2448.        Databanks  residing  on  drives other than the current  drive  may  be 
  2449.   referenced  by enclosing the drive designation and filename  within  single 
  2450.   quotation marks, as noted above for CREATE.
  2451.  
  2452.        Depending on the implementation,  there may be additional arguments to 
  2453.   the  ACCESS command to specify special file formats (CitiBase for example), 
  2454.   passwords or read/write access.
  2455.  
  2456.  
  2457.   4.3  Release a Databank from SORITEC
  2458.  
  2459.        RETURN  automatically closes any database which is currently open  and 
  2460.   releases it from SORITEC's control.   The format of the command is:
  2461.  
  2462.             RETURN
  2463.  
  2464.   No  arguments  are required with this command as  only  currently  ACCESSed 
  2465.   databank  is  referenced.   After the RETURN command,  the database  is  no 
  2466.   longer accessible until another ACCESS command is executed.
  2467.  
  2468.  
  2469.   4.4  Purge a Databank 
  2470.  
  2471.        Databanks may be purged from the DOS directory with the PURGE command.  
  2472.   The format of the command  is:
  2473.  
  2474.             PURGE filename
  2475.  
  2476.   Since the database is permanently erased,  this command should be used with 
  2477.   care!  PURGE only works on SORITEC databases so it isn't possible to delete 
  2478.   an arbitrary file using this command.   Reference to a database on a direc-
  2479.   tory  or  drive other than the current one follows the same  rules  as  the 
  2480.   CREATE and ACCESS commands.
  2481.  
  2482.  
  2483.   4.5  Retrieve Items from a Databank into the Workspace 
  2484.  
  2485.        Data  are explicitly copied from the currently accessed databank  into 
  2486.   the workspace by the COPY command.  The command syntex is:
  2487.  
  2488.             COPY item_1 item_2 ... item_n
  2489.  
  2490.   Arguments in the command line may be  time-series,  constants,  parameters, 
  2491.   vectors,  group  names,  and  equations.   Since  the  databank  is  always 
  2492.   implicitly  searched for items needed by SORITEC commands,  this command is 
  2493.   generally used only when you need to retrieve data from a second  database.  
  2494.   If,  for example,  you wish to regress a measure of inflation, such as CPI, 
  2495.   stored on one database,  against some measures of final demand, such as PCE 
  2496.  
  2497.  
  2498.                                  38
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.   and DEFENSE, stored on another, the command sequence would be:
  2508.  
  2509.             ACCESS inflate
  2510.             COPY cpi
  2511.             ACCESS fdemand
  2512.             REGRESS cpi pce defense
  2513.  
  2514.  
  2515.   4.6  Store Items in a Databank 
  2516.  
  2517.        Items  in  SORITEC's  databank are stored  on  the  currently-accessed 
  2518.   databank  with the KEEP command.  The syntax of the command is:
  2519.  
  2520.             KEEP item_1 item_2 ... item_n
  2521.  
  2522.   Each argument,  "item_i", can be a data series,  constant, parameter, equa-
  2523.   tion,  vector, group name or equation.  If you try to KEEP an item that has 
  2524.   the same name as an item that already exists in the database,  a  non-fatal 
  2525.   error is reported and the item is not replaced.   
  2526.  
  2527.        There  are  three  ways to replace an item that already  exists  on  a 
  2528.   SORITEC databank.  First, the item stored in the databank can be explicitly 
  2529.   discarded using the DISCARD command and then stored using the KEEP command. 
  2530.   Second,  the  item  can  be replaced explicitly with the  REPLACE  command.  
  2531.   Lastly,  items  in  in a databank can be implicitly replaced with the  KEEP 
  2532.   command  if  the ON REPLACE option has been enabled.
  2533.  
  2534.        KEEP  stores  all observations associated with  a  given  time-series, 
  2535.   regardless of the observation period,  as defined by the current setting of 
  2536.   the USE command,  that is currently active.  For example, if the series GNP 
  2537.   is defined for 1950Q1 to 1984Q2 and the current USE period is for 1980Q1 to 
  2538.   1983Q4,  the command KEEP GNP stores the series for 1950Q1-1984Q2.  You may 
  2539.   save only the active observations by entering the command:
  2540.  
  2541.             KEEP(ACTIVE) item_1 item_2 ... item_n
  2542.  
  2543.  
  2544.   4.7  Replace Items in a Databank 
  2545.  
  2546.        Items  in  databanks  are replaced by items of the same  name  in  the 
  2547.   current workspace with the REPLACE command.  The command syntax is:
  2548.  
  2549.             REPLACE item_1 item_2 ... item_n
  2550.  
  2551.   If the item is not currently stored on the database,  a warning message  is 
  2552.   generated but the item is still saved.
  2553.  
  2554.  
  2555.   4.8  Rename Items in a Databank 
  2556.  
  2557.        The  names of items in a SORITEC databank are changed with the  RENAME 
  2558.   command, which has the form:
  2559.  
  2560.             RENAME new_name_1 old_name_1 new_name_2 old_name_2 ...
  2561.  
  2562.  
  2563.  
  2564.                                  39
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.   RENAME takes an even number of arguments consisting of pairs of item names.  
  2574.   The command renames item old_name_i to new_name_i.   Note that the ordering 
  2575.   of  the  pair is  new_name,  followed by old_name,  which is reversed  from 
  2576.   argument orders usually found in SORITEC.
  2577.  
  2578.  
  2579.   4.9  Switch the Names of Two Items in a Databank 
  2580.  
  2581.        Pairs  of items in a SORITEC databank can have their names swapped  by 
  2582.   the SWITCH command.  The syntax of the command is:
  2583.  
  2584.             SWITCH item_1 item_2
  2585.  
  2586.   It is equivalent to the series of commands:
  2587.  
  2588.             RENAME temp item_1
  2589.             RENAME item_1 item_2
  2590.             RENAME item_2 temp.
  2591.  
  2592.  
  2593.   4.10  Discard Items from a Databank 
  2594.  
  2595.        Items are erased from a databank with the DISCARD command.  The format 
  2596.   of DISCARD is:
  2597.  
  2598.             DISCARD item_1 item_2 ... item_n
  2599.  
  2600.   Once DISCARDed, the item is irretrievably lost.
  2601.  
  2602.  
  2603.   4.11  Generate a Directory Listing of a Databank 
  2604.  
  2605.        An  alphabetically sorted directory listing of a SORITEC  databank  is 
  2606.   produced with the CONTENTS command, which has the form:
  2607.  
  2608.             CONTENTS [filename]
  2609.  
  2610.   If "filename" is omitted from the command line,  SORITEC Sampler produces a 
  2611.   directory  listing  of the currently active databank.   If no  databank  is 
  2612.   active, an error message is returned.
  2613.  
  2614.        The optional argument "filename" is the name of a SORITEC database  in 
  2615.   the  current  directory.   Reference to a database on a directory or  drive 
  2616.   other than the current one follows rules similar to the CREATE, ACCESS, and 
  2617.   PURGE commands.   
  2618.  
  2619.        Note that the command:
  2620.  
  2621.             CONTENTS filename
  2622.  
  2623.   attaches the named databank after returning the one currently attached.  To 
  2624.   reference  the  previous databank,  you must re-attach it with  the  ACCESS 
  2625.   command.
  2626.  
  2627.  
  2628.  
  2629.  
  2630.                                  40
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645.                                    Chapter 5
  2646.                             Programming Constructs
  2647.  
  2648.  
  2649.   5.0  Introduction
  2650.  
  2651.        SORITEC  provides  a powerful interpretive programming  language  that 
  2652.   enables  the user to simplify complex and repetitive estimation  procedures 
  2653.   into  a  smaller  set  of commands that can be  executed  interactively  or 
  2654.   through  SORITEC's batch processing facility.   SORITEC's programming  lan-
  2655.   guage supports numeric and alpha looping, and conditional and unconditional 
  2656.   transfer of control to other statements.  When set up as a SORITEC Alterna-
  2657.   tive  Command (SAC) file,  this programming language provides a  convenient 
  2658.   means  for developing more complex estimators and diagnostic statistics  in 
  2659.   addition  to  those provided directly by SORITEC  Sampler.   The  alternate 
  2660.   command file facility enables command files to call other command files  so 
  2661.   that  a  series of command sequences can be executed.   Note  that  command 
  2662.   files  can be chained together but they cannot be nested.   This means that 
  2663.   program  control does not implicitly return to the command file from  which 
  2664.   the call was made.
  2665.  
  2666.         SORITEC  also  provides  a  PROCEDURE  facility that  allows  you  to
  2667.   structure  a  sequence  of commands into a subprogram that,  once  defined,
  2668.   can be passed arguments and repetitively called, like a subroutine, from  a
  2669.   SORITEC command line.  The PROCEDURE facility is not available  in  SORITEC
  2670.   Sampler.
  2671.  
  2672.        The  commands associated with SORITEC Sampler's  programming  language 
  2673.   follow.
  2674.  
  2675.  
  2676.   5.1  Numeric Looping
  2677.  
  2678.        Repetitive execution of commands in SORITEC Sampler is accomplished by 
  2679.   DO loops.  The DO loop has the following general format:
  2680.  
  2681.             DO index = beginning_value TO end_value BY increment
  2682.                  .
  2683.                  .         
  2684.  
  2685.        (SORITEC Sampler commands)
  2686.  
  2687.                  .
  2688.                  .
  2689.             END
  2690.  
  2691.   The DO loop index,  beginning_value, end_value and increment may be integer 
  2692.   or  real  scalars  or parameters and you can proceed  forward  or  backward 
  2693.   through  the  loop by assigning a positive or negative value to the  incre-
  2694.  
  2695.  
  2696.                                  41
  2697.  
  2698.  
  2699.  
  2700.  
  2701.  
  2702.  
  2703.  
  2704.  
  2705.   ment.  Both the end_value and increment may be reset dynamically within the 
  2706.   loop.   If  so,  the new values are used to determine whether the  loop  is 
  2707.   executed  again.   If the BY increment is omitted from the DO command line, 
  2708.   it   is  set  to  1.    A  DO  command,   with  no  specified  values   for 
  2709.   "beginning_value",  "end_value" and "increment",  will cause the statements 
  2710.   before the END command to be executed once.
  2711.  
  2712.        If  the DO variable's initial value exceeds its maximum value before a 
  2713.   positive increment is added,  an error message is generated and the  state-
  2714.   ments between the DO and END statements are not executed.   The same situa-
  2715.   tion  results  if  the variable's initial value is set lower than  a  final 
  2716.   value to be reached by negative increments.  
  2717.  
  2718.        You can construct a DO loop to index through members of a group.   For 
  2719.   example, the commands:
  2720.  
  2721.             GROUP group_name series_1 series_2 ... series_n
  2722.             ON GROUP
  2723.             DO i = 1 TO n
  2724.             REGRESS y group_name(i)
  2725.             END
  2726.  
  2727.   would regress the dependent variable "y" against each of the time-series in 
  2728.   the group "group_name" successively.
  2729.  
  2730.  
  2731.   5.2  Unconditional Branching
  2732.  
  2733.        SORITEC Sampler allows you to transfer control to any command prefixed 
  2734.   by a statement number.  The format of the command is simply:
  2735.  
  2736.             GO TO statement_number
  2737.  
  2738.   Alternatively, the command may be specified as GOTO.
  2739.  
  2740.        Statement numbers may be numbers,  CONSTANTs or PARAMETERs and must be 
  2741.   in  the range 1 to 9999.   They may be prefixed to most commands and FORMAT 
  2742.   statements,  but  not  GO TO statements.   Other commands that may  not  be 
  2743.   prefixed are:
  2744.  
  2745.                  JOB                      ONLIST
  2746.                  HELLO                    OFFLIST
  2747.                  SCAN                     MAXERR
  2748.                  WIDTH                    COMMENT
  2749.  
  2750.        In  batch mode,  if the specified command number does  not  exist,  an 
  2751.   error  message  is generated,  and control passes to  the  statement  which 
  2752.   follows the GO TO command.  In interactive mode, the system responds with a 
  2753.   query  for  the  missing statement number until  the  statement  number  is 
  2754.   entered.  
  2755.  
  2756.  
  2757.  
  2758.  
  2759.  
  2760.  
  2761.  
  2762.                                  42
  2763.  
  2764.  
  2765.  
  2766.  
  2767.  
  2768.  
  2769.  
  2770.  
  2771.   5.3  Conditional Branching
  2772.  
  2773.        Conditional  branching  is  enabled through  an  IF/THEN/ELSE  command 
  2774.   structure.  The general format for the command sequence is:
  2775.  
  2776.             IF condition; THEN; command_sequence_1; ELSE; command_sequence_2
  2777.  
  2778.   A "condition" must be an arithmetic expression that may include logical and 
  2779.   relational operators,  as needed.  When the condition is satisfied, control 
  2780.   transfers  to  "command_sequence_1",  otherwise control is  transferred  to 
  2781.   "command_sequence_2".  The IF/THEN/ELSE sequence MUST be delimited by semi-
  2782.   colons,  as  specified above.   An IF/THEN/ELSE command structure CANNOT be 
  2783.   nested.
  2784.  
  2785.        Command sequences in conditional branching statements may be  composed 
  2786.   of  a  single command or a series of commands.   If more than  one  command 
  2787.   comprises a command sequence, they must be structured in a DO loop, e.g.,
  2788.  
  2789.             IF a > b; THEN; DO
  2790.                             c = b * log(a)
  2791.                             print a b c
  2792.                             END;
  2793.                       ELSE;
  2794.                             DO
  2795.                             c = a * log(b)
  2796.                             plot a # b *
  2797.                             END
  2798.  
  2799.   Obviously,   a  DO  loop  in  an  IF/THEN/ELSE  sequence  can  be  executed 
  2800.   repetitively  by  specifying the index,  initial value,  final  value  and, 
  2801.   optionally, the increment in the DO command line.
  2802.  
  2803.        Either  the THEN or the ELSE clause may be omitted from a  conditional 
  2804.   branching command sequence.  The IF command can also be used with the GO TO 
  2805.   command to control the order of execution, e.g.
  2806.  
  2807.             IF x < y .and. a > b; THEN; GO TO 300
  2808.  
  2809.  
  2810.   5.4  Null (Continuation) Statement
  2811.  
  2812.        The  CONTINUE statement is generally used in SORITEC Sampler to  posi-
  2813.   tion a statement number within a SORITEC program.  Its syntax is:
  2814.  
  2815.             statement_number CONTINUE
  2816.  
  2817.   As such, it is not executed.
  2818.  
  2819.  
  2820.   5.5  Alpha Looping
  2821.  
  2822.        SORITEC  Sampler  will repetitively execute a sequence of commands  by 
  2823.   indexing  over  a set of alphabetic loop control variables.   On each  pass 
  2824.   through the loop,  SORITEC Sampler supplies succeeding alphabetic arguments 
  2825.   in  the DOT statment.   The DOT statement is functionally similar to  a  DO 
  2826.  
  2827.  
  2828.                                  43
  2829.  
  2830.  
  2831.  
  2832.  
  2833.  
  2834.  
  2835.  
  2836.  
  2837.   command.  The format of the command is:
  2838.  
  2839.             DOT variable_1 variable_2 ... variable_n 
  2840.                  .
  2841.                  .         
  2842.  
  2843.        (SORITEC Sampler commands)
  2844.  
  2845.                  .
  2846.                  .
  2847.                  .
  2848.             ENDDOT
  2849.  
  2850.        Alpha loop control variables are successively entered into expressions 
  2851.   within  the  DOT loop by substituting all references to  any  colons  (":") 
  2852.   within the DOT loop by the currently active alpha variable, i.e.,
  2853.  
  2854.             DOT a b c                          REGRESS y a
  2855.             REGRESS y :    is executed as      REGRESS y b
  2856.             ENDDOT                             REGRESS y c
  2857.  
  2858.   You  may also use the colons as suffixes to construct new variables  within 
  2859.   DOT loops, e.g.,
  2860.  
  2861.             DOT var1 var2 var3                 outvar1 = inpvar1 * z
  2862.             out: = inp: * z   is executed as   outvar2 = inpvar2 * z
  2863.             ENDDOT                             outvar3 = inpvar3 * z
  2864.    
  2865.   The  colon may not be used as a prefix,  however.   All commands in the DOT 
  2866.   loop are executed as many times as there are variables in the DOT  command.  
  2867.   Note that if group expansion is enabled by the ON GROUP switch,  a DOT loop 
  2868.   can index through a GROUP, i.e.
  2869.  
  2870.             GROUP group_name var_1 var_2 var_3 ...
  2871.             ON GROUP
  2872.             DOT group_name
  2873.             regress y :
  2874.             ENDDOT
  2875.  
  2876.   would regress the dependent variable, y, against each of the time-series in 
  2877.   the GROUP "group_name".
  2878.  
  2879.  
  2880.  
  2881.  
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.  
  2888.  
  2889.  
  2890.  
  2891.  
  2892.  
  2893.  
  2894.                                  44
  2895.  
  2896.  
  2897.  
  2898.  
  2899.  
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.                                    Chapter 6
  2909.                    Dummy Data Series Generation and Special
  2910.                             Transformation Commands                
  2911.  
  2912.  
  2913.   6.0  Introduction
  2914.  
  2915.        SORITEC  Sampler provides several commands that generate or  transform 
  2916.   time-series.   These  commands  create dummy variables  or  they  transform 
  2917.   existing  data  series into new time-series.   They include facilities  for 
  2918.   converting time-series from one periodicity to another and for transforming 
  2919.   continuous  into discrete variables.    SORITEC Sampler also provides  com-
  2920.   mands  that  compute  modular  division  and  invoke  maximum  and  minimum 
  2921.   functions.
  2922.  
  2923.  
  2924.   6.1  Create a Time Trend Dummy Series
  2925.  
  2926.   SORITEC Sampler generates a time trend dummy series with the TIME command. 
  2927.   The syntax of this command is:
  2928.  
  2929.             TIME [series_name]
  2930.  
  2931.   TIME  sets  the first observation of the "series_name" associated with  the 
  2932.   currently  active  USE  period  equal  to  one  and  increments  successive 
  2933.   observations  by  one,  so that the second observation is set to  two,  the 
  2934.   third  to  three,  etc.   If the "series_name" is omitted from the  command 
  2935.   line,  TIME  stores the time trend dummy in a series named  "time".   If  a 
  2936.   variable by that name already exists in the workspace, it will be overwrit-
  2937.   ten by the TIME command.
  2938.  
  2939.        The  TIME command may only be invoked when there are no internal  gaps 
  2940.   in  the current USE period,  i.e.,  the current USE period must  have  been 
  2941.   invoked with only two arguments.
  2942.  
  2943.  
  2944.   6.2  Create Seasonal Dummies
  2945.  
  2946.        A  periodic  dummy variable can be created using  the  DUMMY  command, 
  2947.   which has the form:
  2948.  
  2949.             DUMMY output_series first_observation skip_increment
  2950.  
  2951.   In  the command line,  "first_observation" is the first observation set  to 
  2952.   one.   Series  elements  are then set to one  every  "skip_increment.   The 
  2953.   remaining values of the series are set to zero.
  2954.  
  2955.  
  2956.  
  2957.  
  2958.  
  2959.  
  2960.                                  45
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.   6.3  Recode a Variable
  2970.  
  2971.        SORITEC  Sampler  allows you to convert a continuous variable  into  a 
  2972.   discrete variable via the RECODE command.  The form of the command line is:
  2973.  
  2974.             RECODE output_series input_series p(1) p(2) p(3) p(4) ...
  2975.  
  2976.   In  the above command line,  "input_series" is the series to be recoded and 
  2977.   "output_series"  is  the categorized output variable.   The  p(i)  are  the 
  2978.   interval boundaries for the recoding process.
  2979.  
  2980.        To show the RECODE function, the commands:
  2981.  
  2982.             FILL a  3 17 21 28 31 35 26 41
  2983.             RECODE b a 10 20 25 30 35 40
  2984.             PRINT a b
  2985.  
  2986.   produce these results.
  2987.  
  2988.                            A         B
  2989.                  1         3         0
  2990.                  2        17         1
  2991.                  3        21         2
  2992.                  4        28         3
  2993.                  5        31         4
  2994.                  6        35         5
  2995.                  7        26         3
  2996.                  8        41         6
  2997.  
  2998.   For each element, i, of the series, RECODE uses the following formula:
  2999.  
  3000.             output_series(i) = k if p(k-1) =< input_series(i)  < p(k)   
  3001.                                                   when p(k-1) <> p(k), and
  3002.  
  3003.             output_series(i) = k if p(k-1) =  input_series = p(k)
  3004.  
  3005.   p(0)  is  always  considered to be -infinity,  and p(n+1) (where n  is  the 
  3006.   number of p(i) in the command) is always considered to be +infinity.
  3007.  
  3008.  
  3009.   6.4  Conversion of Time-Series from One Periodicity to Another
  3010.  
  3011.        The  periodicity  of  dated and undated time-series  is  converted  by 
  3012.   SORITEC  Sampler with the CONVERT command.   The command has the  following 
  3013.   syntax:
  3014.  
  3015.             CONVERT [(modifier)] output_series = input_series
  3016.  
  3017.   When the command is executed,  data of one periodicity are converted to the 
  3018.   periodicity specified by the current USE statement.   In other  words,  the 
  3019.   periodicity of the "input_series" does not have to be explicitly specified, 
  3020.   since SORITEC Sampler determines it internally.
  3021.  
  3022.        Lags  are  not allowed in CONVERT arguments and the entire  series  is 
  3023.   always  converted,  regardless  of the range specified in the USE  command.  
  3024.  
  3025.  
  3026.                                  46
  3027.  
  3028.  
  3029.  
  3030.  
  3031.  
  3032.  
  3033.  
  3034.  
  3035.  
  3036.        While the standard syntax of the convert command requires the specifi-
  3037.   cation of both an output (result) series and an input series, the converted 
  3038.   series can be written to the input series name simply by specifying:
  3039.  
  3040.             CONVERT [(modifier)] input_series
  3041.  
  3042.   After  the  conversion,  the  old values of the input series,  in  the  old 
  3043.   periodicity, are lost.  
  3044.        
  3045.        The  modifier argument in the command line is optional,  and  controls 
  3046.   the type of conversion which takes place.  There are two sets of modifiers, 
  3047.   one for aggregation (such as monthly to annual), and one for disaggregation 
  3048.   (such as annual to monthly), plus a special MOVE modifier for converting to 
  3049.   and from undated data.  The modifiers are:
  3050.  
  3051.           AGGREGATION
  3052.              SUM     Sum observations in each period (default)
  3053.              AVERAGE Average observations in each period
  3054.              MIN     Find the minimum observation in each period
  3055.              MAX     Find the maximum observation in each period
  3056.              LAST    Use the last observation in each period
  3057.  
  3058.           DISAGGREGATION
  3059.              FILL    Use the data point for entire period for each sub-period
  3060.              SHARE   Divide the data value for the entire period equally
  3061.                       across all sub-periods (default)
  3062.  
  3063.           UNDATED TO DATED CONVERSIONS
  3064.              MOVE    Move the data from and undated to a dated variable or
  3065.                       vice versa without alteration (default)
  3066.  
  3067.   Modifiers  do not have to entered into the command line explicitly  if  the 
  3068.   default is selected.
  3069.  
  3070.        Conversion  is currently permitted only between  annual,  semi-annual, 
  3071.   quarterly,  monthly,  ten-day and undated data types.  In addition, conver-
  3072.   sion from monthly to ten-day periodicity produces incorrect results because 
  3073.   of  the  way  the  ten-day  data type is  defined.   See  Section  2.4  for 
  3074.   information on data types supported by SORITEC.
  3075.  
  3076.        
  3077.   6.5  Maximum Function
  3078.  
  3079.        SORITEC  Sampler can determine the maximum of a series or can generate 
  3080.   a new series from several containing the maximum value associated with each 
  3081.   observation.
  3082.  
  3083.        The  maximum  value of a series is found by entering the  MAX  command 
  3084.   with only two arguments, i.e.,
  3085.  
  3086.             MAX maximum_value input_series
  3087.  
  3088.   When  entered like this,  "input_series" is the data series over which  the 
  3089.   maximum is to be taken.  The result is stored in "maximum_value" which must 
  3090.  
  3091.  
  3092.                                  47
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099.  
  3100.  
  3101.   be  a  CONSTANT  or PARAMETER.   If the "maximum_value" name  is  undefined 
  3102.   prior to entering the command, SORITEC Sampler defines it to be a CONSTANT.
  3103.  
  3104.        A new series consisting of the set of maximum values,  by observation,  
  3105.   associated  with several series is generated by the MAX command  when  more 
  3106.   than two arguments are entered in the command line, i.e.,
  3107.  
  3108.             MAX output_series input_series_1 input_series_2 ...
  3109.  
  3110.   In this case,  all arguments in the command line must be data series.   The 
  3111.   resulting  "output_series" contains the observation-by-observation  maximum 
  3112.   of all the remaining arguments.   Up to 99 input series can be evaluated by 
  3113.   this command.
  3114.  
  3115.   6.6  Minimum Function
  3116.  
  3117.        The  minimum value of a data series or a series of minimum values,  by 
  3118.   observation,  of  several series is obtained using the  MIN  command.   The 
  3119.   format and use of MIN is identical to the MAX command except for the result 
  3120.   it  computes.   In  other  words,  the minimum value of a  data  series  is 
  3121.   determined when the MIN command is followed by two arguments:
  3122.  
  3123.             MIN minimum_value input_series
  3124.  
  3125.   where  the first argument is a CONSTANT or PARAMETER and the second is  the 
  3126.   series you wish to evaluate.
  3127.  
  3128.        A  series containing observation-by-observation minimums is  generated 
  3129.   when more than two arguments,  all of which must be data series, follow the 
  3130.   MIN command, i.e.,
  3131.  
  3132.             MIN output_series input_series_1 input_series_2 ...
  3133.  
  3134.   The same restrictions as apply to the MAX function apply to MIN.
  3135.  
  3136.  
  3137.   6.7  Modular Division
  3138.  
  3139.        SORITEC  Sampler performs modular division via the MOD command,  which 
  3140.   has the following format:
  3141.  
  3142.             MOD remainder dividend divisor
  3143.  
  3144.   In mathematical notation, the formula used is:
  3145.  
  3146.             remainder = dividend - (INT(dividend/divisor) * divisor)
  3147.  
  3148.   where INT is the integer part of the quotient within parentheses.
  3149.  
  3150.        The  dividend  and  divisor  must  be of the  same  type  and  may  be 
  3151.   CONSTANTs,  PARAMETERs  or data series with the resulting "remainder" being 
  3152.   the  same  type.   Modular division is useful for generating  sequences  of 
  3153.   uniform random numbers in SORITEC Sampler.
  3154.  
  3155.  
  3156.  
  3157.  
  3158.                                  48
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.   6.8  Compute Moving Average
  3168.  
  3169.        The moving average of a series is calculated by the MA command.
  3170.  
  3171.             MA output_series input_series length
  3172.  
  3173.   In the command line,  "input_series" is the series to be averaged, "length" 
  3174.   is  the length of the moving average,  and "output_series" is the resulting 
  3175.   series.  The argument, "length", may be a CONSTANT, PARAMETER, or a numeric 
  3176.   quantity.  The first n observations of the output_series, equivalent to the 
  3177.   length of the moving average are treated as MISSING data.
  3178.  
  3179.   6.9  Compute Moving Sum
  3180.  
  3181.        The MSUM command compute the moving sum of a series.
  3182.  
  3183.             MSUM output_series input_series length
  3184.  
  3185.   Arguments in the command line have the same meaning as the MA command.  The 
  3186.   first n observations of the output_series,  equivalent to the length of the 
  3187.   moving sum, are treated as MISSING data.
  3188.  
  3189.  
  3190.   6.10  Statistical Operations
  3191.  
  3192.        Several   statistical  functions  are  available  for  analyzing   and 
  3193.   manipulating data.  They are described in the following sections.
  3194.  
  3195.  
  3196.        6.10.1  Correlation Matrix Calculation
  3197.  
  3198.        A  correlation  matrix  for  the variables  in  an  argument  list  is 
  3199.   generated by the CORREL command.  The format of the command is:
  3200.  
  3201.             CORREL series_1 series_2 series_3 ...
  3202.  
  3203.   Only  observations  active in the currently defined USE period are used  in 
  3204.   correlation  matrix  calculations.   While only the correlation  matrix  is 
  3205.   output  to  the terminal,  the correlation matrix (COR),  vector  of  means 
  3206.   (MEANS),  vector  of standard deviations (DEVS) and covariance matrix (COV) 
  3207.   are calculated by CORREL and stored as SORITEC internal  variables.   These 
  3208.   results may be accessed with a RECOVER command.
  3209.  
  3210.  
  3211.        6.10.2  Covariance Matrix Calculation
  3212.  
  3213.        The  COVA command computes,  stores and prints a covariance matrix for 
  3214.   the  variables named as arguments in the command line.   The format of  the 
  3215.   command is:
  3216.  
  3217.             COVA series_1 series_2 series_3 ...
  3218.  
  3219.   Similar  to  the  CORREL command,  only observations  associated  with  the 
  3220.   currently active USE period are used in calculations.   The vector of means 
  3221.   (MEANS),  vector of standard deviations (DEVS) and covariance matrix  (COV) 
  3222.  
  3223.  
  3224.                                  49
  3225.  
  3226.  
  3227.  
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233.   are stored as SORITEC internal variables when the COVA command is executed, 
  3234.   and may be accessed by the RECOVER command.
  3235.  
  3236.  
  3237.        6.10.3  Other Statistical Operations
  3238.  
  3239.        Several  specialized  statistical operations are supported by  SORITEC 
  3240.   Sampler to describe the properties of a time-series.  All operations have a 
  3241.   standard format which consists of the command name,  followed by the output 
  3242.   variable and the input series, i.e.,
  3243.  
  3244.             COMMAND output_constant input_series
  3245.  
  3246.   Statistics  are  calculated  over the currently  active  USE  period.   The 
  3247.   statistical  operations  available  in SORITEC  Sampler  and  commands  for 
  3248.   executing them are:
  3249.  
  3250.                       Command                            Description
  3251.                       -------                            -----------
  3252.             MEAN mean input_series                Arithmetic Mean
  3253.  
  3254.             RMS root_mean_square input_series     Root Mean Square
  3255.  
  3256.             SUM sum input_series                  Arithmetic Sum
  3257.  
  3258.             SSR sum_squared_resids input_series   Sum of Squared
  3259.                                                          Residuals
  3260.  
  3261.  
  3262.  
  3263.  
  3264.  
  3265.  
  3266.  
  3267.  
  3268.  
  3269.  
  3270.  
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279.  
  3280.  
  3281.  
  3282.  
  3283.  
  3284.  
  3285.  
  3286.  
  3287.  
  3288.  
  3289.  
  3290.                                  50
  3291.  
  3292.  
  3293.  
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.                                    Chapter 7
  3305.                           SORITEC Financial Functions
  3306.  
  3307.  
  3308.   7.0  Financial Functions in SORITEC
  3309.  
  3310.        SORITEC  Sampler  contains  most  of  the  common  financial  analysis 
  3311.   functions.   These functions used alone or with SORITEC's forecasting  com-
  3312.   mands  provide an extremely powerful tools for performing financial project 
  3313.   evaluation.   The  functions  currently provided include internal  rate  of 
  3314.   return, present value, and various loan amortization schedules.
  3315.  
  3316.        Note  that in all SORITEC Sampler financial functions,  interest rates 
  3317.   are treated as decimal quantities unless otherwise noted; specifically, 15% 
  3318.   is represented as 0.15.
  3319.  
  3320.  
  3321.   7.1  Internal Rate of Return
  3322.  
  3323.        The  internal rate of return command calculates the internal  rate  of 
  3324.   return  for  an arbitrary series "X" via a modified  Newton-Raphson  search 
  3325.   algorithm.  The format of the command is
  3326.  
  3327.             IRR([CAPITAL=#,ITER=#,TOL=#,INITIALR=#]) & 
  3328.                            interest_rate net_income_series 
  3329.  
  3330.   where  "interest_rate" is a legal SORITEC constant name for  the  resulting 
  3331.   interest rate which discounts the "net_income_series" to a zero net present 
  3332.   value.  
  3333.  
  3334.        Alternatively,  the  IRR command can be used to calculate the internal 
  3335.   rate  of return on the profits or benefits associated with a  project  with 
  3336.   known costs.  In this situation, the form of the command is:
  3337.  
  3338.             IRR([CAPITAL=#,ITER=#,TOL=#,INITIALR=#]) & 
  3339.                            interest_rate benefits costs
  3340.  
  3341.   Here,  the  second  series is subtracted from the first in calculating  the 
  3342.   IRR.
  3343.  
  3344.        The  optional modifiers in the command line allow the user to  control 
  3345.   the parameters determining convergence for the algorithm as well as  speci-
  3346.   fication of an arbitrary start-up capital cost.  Specifically,
  3347.  
  3348.            CAPITAL is the start-up cost of the project. It is auto-
  3349.            matically subtracted from the first period profits.
  3350.  
  3351.            ITER is the maximum number of iterations for the search.  
  3352.            The default is 50.
  3353.  
  3354.  
  3355.  
  3356.                                  51
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362.  
  3363.  
  3364.  
  3365.            TOL is the tolerance level that defines convergence.  An 
  3366.            absolute or relative change in the net present value  of 
  3367.            less than TOL results in convergence.  The default value 
  3368.            is .00001.
  3369.  
  3370.            INITIALR allows the user to specify a starting value for 
  3371.            the  iterations.   This  is of special value in  finding 
  3372.            multiple  roots  to  the IRR equation  when  cash  flows 
  3373.            change  signs  more  than once during the  life  of  the 
  3374.            project.
  3375.  
  3376.  
  3377.   7.2  Present Value
  3378.  
  3379.        The present value command,  PV,  calculates the net present value of a 
  3380.   stream  of net benefits (or profits) associated with a  financial  venture.  
  3381.   PV  will take either a scalar value for the interest rate or a time  series 
  3382.   of forecast values.   This later feature, when combined with the estimation 
  3383.   and forecasting capabilities of SORITEC Sampler,  provides a powerful  tool 
  3384.   for  simulating and evaluating financial projects.   The syntax of the com-
  3385.   mand is:
  3386.  
  3387.             PV([PERIOD=<D,W,T,M,Q,S,A>,<SIMPLE,COMPOUND>]) &
  3388.                   present_value net_income_stream <costs>  interest_rate
  3389.  
  3390.   where  "present_value" is a scalar value equal to the present value of  the 
  3391.   income  stream,   "net_income_stream"  is  the  net  income  stream  to  be 
  3392.   discounted,  and  "interest_rate" is the interest rate used in  calculating 
  3393.   the present value.  The interest rate can be either a scalar, fixed for all 
  3394.   periods,  or  a  time  series  of interest rates.   This  allows  for  easy 
  3395.   incorporation of interest rate forecasts into project evaluation. 
  3396.  
  3397.        The  "net_income_stream" can be followed by an optional  cost  series. 
  3398.   This  second argument in the command line can be either a single net income 
  3399.   stream  or  a  pair  of series describing the revenues  and  costs  of  the 
  3400.   project.
  3401.  
  3402.        The  optional modifiers in the command line allow the user to  convert 
  3403.   the  periodicity of the interest rate to conform to the net  income  stream 
  3404.   and to specify the type of conversion to be performed.  Specifically,
  3405.  
  3406.            PERIOD  allows an interest rate conversion to  be  spec-
  3407.            ified;  specifically, setting PERIOD equal to one of the 
  3408.            options  results  in the specified interest  rate  being 
  3409.            converted  from the selected periodicity to the  period-
  3410.            icity of the current USE period.  The periodicity may be 
  3411.            (D)aily,  (W)eekly,  (T)en Day,  (M)onthly, (Q)uarterly, 
  3412.            (S)emi-annual or (A)nnual.
  3413.  
  3414.            A second option, specified either as SIMPLE or COMPOUND, 
  3415.            is  the type of conversion to be used.   The default  is 
  3416.            COMPOUND conversion.
  3417.  
  3418.        The  PERIOD modifier used with the conversion option can handle trans-
  3419.   formations  between  annual or effective interest rates and  the  effective 
  3420.  
  3421.  
  3422.                                  52
  3423.  
  3424.  
  3425.  
  3426.  
  3427.  
  3428.  
  3429.  
  3430.  
  3431.   periodic percentage rates.   If the annual rate is given as 15%, the effec-
  3432.   tive  annual  percentage rate is 16.0754% - calculated as  .15/12  =  1.25% 
  3433.   compounded monthly.  For example,
  3434.  
  3435.             PV(PERIOD=A,SIMPLE) pv_result PROFIT .15
  3436.  
  3437.   will  correctly  convert the 15% annual percentage rate to a 1.25%  monthly 
  3438.   rate before calculating the present value.  If the available data are given 
  3439.   in  terms  of  effective yields,  the COMPOUND option  should  be  used  to 
  3440.   correctly  convert rates between periods.   A loan requiring 4% per quarter 
  3441.   is equivalent to a loan rate of 1.316% compounded monthly [exp(ln(1.04)/3)-
  3442.   1].  Here, the appropriate command would be:
  3443.  
  3444.             PV( PERIOD=Q, COMPOUND ) pv_result PROFIT .04
  3445.  
  3446.  
  3447.   7.3  Loan Amortization
  3448.  
  3449.        The   loan  amortization  procedure  (AMORT)  provides  a   convenient 
  3450.   technique  for calculating the monthly payment for a given loan  situation. 
  3451.   In addition to the standard loan value and interest rate setup,  AMORT also 
  3452.   supports  an  arbitrary number of loan payment  series,  balloon  payments, 
  3453.   variable  interest rates,  as well as options for dynamically extending the 
  3454.   amount of the loan through additional borrowings.   The format of the  com-
  3455.   mand is:
  3456.  
  3457.        AMORT([PERIOD=<D,W,T,M,Q,S,A>,<SIMPLE,COMPOUND>], & 
  3458.                [RULEOF78],[BALLOON=#]) &
  3459.                payment loan interest_rate [aux_pay_1 ... aux_pay_n]
  3460.  
  3461.   where  "payment" is the resulting per period payment to fully amortize  the 
  3462.   loan during the  current USE period,  and "loan" is the amount of the loan.  
  3463.   The  loan can either be a constant or a it can be a time-series if the loan 
  3464.   is allocated over the time period set in the USE command.   "interest_rate" 
  3465.   is the interest rate of the loan.   It must be the same type,  either  con-
  3466.   stant or time-series, as the "loan".  
  3467.  
  3468.        The  optional command line arguments,  "aux_pay_i" are time-series  of 
  3469.   auxiliary  payments in addition to the monthly loan payment.   These can be 
  3470.   used  to enter payments to principal that are awkwardly or randomly  timed.  
  3471.   For  example,  a loan which required balloon payments of $5000  every  five 
  3472.   years  can be handled as a time-series with value 5000 for every fifth year 
  3473.   and zeros elsewhere.
  3474.  
  3475.        The  optional  modifiers in the command line allow the user to  change 
  3476.   the amortization schedule as follows: 
  3477.  
  3478.            PERIOD  is the same as for PV.   It allows  an  interest 
  3479.            rate conversion to be specified;  specifically,  setting 
  3480.            PERIOD  equal  to  one  of the options  results  in  the 
  3481.            specified   interest  rate  being  converted  from   the 
  3482.            selected  periodicity to the periodicity of the  current 
  3483.            USE period.   The periodicity may be (D)aily,  (W)eekly, 
  3484.            (T)en-Day,   (M)onthly,  (Q)uarterly,  (S)emi-annual  or 
  3485.            (A)nnual.
  3486.  
  3487.  
  3488.                                  53
  3489.  
  3490.  
  3491.  
  3492.  
  3493.  
  3494.  
  3495.  
  3496.  
  3497.  
  3498.            RULEOF78  constructs  a principle and  interest  payment 
  3499.            series for the loan according the the "Rule of 78"  (sum 
  3500.            of  the  months).   This option is only valid for  loans 
  3501.            with  a single period of borrowing and a fixed  interest 
  3502.            rate.
  3503.  
  3504.            BALLOON allows the specification of a balloon payment in 
  3505.            the final period.
  3506.  
  3507.  
  3508.  
  3509.  
  3510.  
  3511.  
  3512.  
  3513.  
  3514.  
  3515.  
  3516.  
  3517.  
  3518.  
  3519.  
  3520.  
  3521.  
  3522.  
  3523.  
  3524.  
  3525.  
  3526.  
  3527.  
  3528.  
  3529.  
  3530.  
  3531.  
  3532.  
  3533.  
  3534.  
  3535.  
  3536.  
  3537.  
  3538.  
  3539.  
  3540.  
  3541.  
  3542.  
  3543.  
  3544.  
  3545.  
  3546.  
  3547.  
  3548.  
  3549.  
  3550.  
  3551.  
  3552.  
  3553.  
  3554.                                  54
  3555.  
  3556.  
  3557.  
  3558.  
  3559.  
  3560.  
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.                                    Chapter 8
  3569.                    SORITEC Sampler Cross-Section Techniques
  3570.  
  3571.  
  3572.   8.0 Introduction
  3573.  
  3574.        The full version of SORITEC contains most of the common techniques for 
  3575.   processing  and  analyzing cross-sectional data sets and,  in  addition  to 
  3576.   providing access to most of the intermediate and final results, also imple-
  3577.   ments  several diagnostic tests not reported by most statistical  packages. 
  3578.   The specific subset of techniques currently implemented in SORITEC  Sampler 
  3579.   are as follows:
  3580.  
  3581.        SYNOPSIS provides a quick statistical summary of a data series.
  3582.  
  3583.        XTAB  carries out a standard  r * c contingency table analysis 
  3584.              including tests of independence.
  3585.  
  3586.   8.1  Synopsis
  3587.  
  3588.        The  SYNOPSIS  command returns a detailed summary analysis of  a  data 
  3589.   series  including  mean,   standard  deviation,  median  (including  a  95% 
  3590.   confidence interval),  mode, quartiles, deciles, variance, skewness, kurto-
  3591.   sis,  coefficient of variation,  number of observations,  number of missing 
  3592.   values,  minimum,  maximum, range, mode and the frequency of the mode.  The 
  3593.   command format of SYNOPOSIS is:
  3594.        
  3595.             SYNOPSIS var_1 var_2 ... var_n
  3596.  
  3597.        In  addition to outputting them to the terminal,  SYNOPSIS stores  the 
  3598.   summary  statistics as SORITEC internal variables,  which may be  recovered 
  3599.   either explicitly with the RECOVER command or by implicit  reference.   See 
  3600.   the  description  of the RECOVER command in Section 2.7 to  retrieve  these 
  3601.   data.   Except for DECILE AND QUARTILe statistics, internal variables asso-
  3602.   ciated  with the SYNOPSIS command are stored as vectors that have the  same 
  3603.   number of elements as arguments in the SYNOPSIS command line.   Recoverable 
  3604.   SORITEC internal variables stored as vectors are:
  3605.  
  3606.             COUNT  = number of non-missing observations for each variable
  3607.             MEDIAN = median value for each variable
  3608.             MIN    = minimum values
  3609.             MAX    = maximum values
  3610.             RANGE  = range for each variable (max - min)
  3611.             MEANS  = mean values
  3612.             VARS   = variances for each variable
  3613.             DEVS   = standard deviations
  3614.             CV     = coefficient of variation for each variable
  3615.             KURT   = kurtosis of each variable
  3616.             SKEW   = skewness for each variable
  3617.             MODE   = mode values for each variable
  3618.  
  3619.  
  3620.                                  55
  3621.  
  3622.  
  3623.  
  3624.  
  3625.  
  3626.  
  3627.  
  3628.  
  3629.  
  3630.        Two other internal variables are stored upon execution of the SYNOPSIS 
  3631.   command.  The variables are:
  3632.  
  3633.             DECILE =  decile values of a series
  3634.             QUARTIL = quartile values of a series
  3635.  
  3636.   Currently,  the DECILE and QUARTIL internal variables are stored as vectors 
  3637.   meaning that decile and quartile values are stored for the last argument in 
  3638.   the command line, only. 
  3639.  
  3640.        Quantiles  are defined as the first observations less than or equal to 
  3641.   the true mathematical quantiles (n/4 and n/10) in both cases.
  3642.  
  3643.        Note  that  SYNOPSIS exercises casewise deletion of missing values  on 
  3644.   each variable when it computes the summary statistics. Because of this, the 
  3645.   statistics  may not compare with those from other SORITEC  statistics  com-
  3646.   mands like STATS, KURTOSIS, etc.
  3647.  
  3648.  
  3649.   8.2  Crosstabulation Analysis
  3650.  
  3651.        The XTAB command calculates the standard r * c crosstabulation report.  
  3652.   The format of the command is:
  3653.  
  3654.             XTAB  series_1 series_2
  3655.  
  3656.   The  arguments  "series_1" and "series_2" must be discrete  data.   If  the 
  3657.   series you wish to crosstabulate are continuous, they must be converted via 
  3658.   the  RECODE command.   XTABs doesn't delete missing  values,  but  instead, 
  3659.   reports  them  as a separate category "MISSING" in the appropriate  row  or 
  3660.   column.  
  3661.  
  3662.        In  addition  to  printer-oriented output,  XTABs has  an  interactive 
  3663.   screen display mode which allows scrolling through the table in a  "spread-
  3664.   sheet" mode.  This feature is described in Chapter 10.  
  3665.  
  3666.        XTAB stores the following internal results.   The full table is stored 
  3667.   only when the NOMATS option is OFF.
  3668.  
  3669.        ^NROW    =  number of distinct row values (variable #1)
  3670.        ^NCOL    =  number of distinct column values (variable #2)
  3671.        ^RMARGIN =  a nrow x 1 vector containing the row margin values
  3672.        ^CMARGIN =  a ncol x 1 vector containing the column values
  3673.        ^XTABLE  =  nrow by ncol matrix composing the inner table
  3674.  
  3675.  
  3676.  
  3677.  
  3678.  
  3679.  
  3680.  
  3681.  
  3682.  
  3683.  
  3684.  
  3685.  
  3686.                                  56
  3687.  
  3688.  
  3689.  
  3690.  
  3691.  
  3692.  
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698.  
  3699.  
  3700.                                    Chapter 9
  3701.                 Estimation and Forecasting with SORITEC Sampler
  3702.  
  3703.  
  3704.   9.0 Introduction
  3705.  
  3706.        The  SORITEC Sampler provides you with several single-equation estima-
  3707.   tion techniques for both single equation and simultaneous equation  models.  
  3708.   Both  ordinary  least squares (OLS) and two-stage least squares  regression 
  3709.   estimators  are  available.   In addition,  both  the  Cochrane-Orcutt  and 
  3710.   Hildreth-Lu  autocorrelation  techniques for the single-equation model  are 
  3711.   supported  by SORITEC Sampler.   These procedures may be applied to  either 
  3712.   time-series or cross-section data.  However, the structure of the equations 
  3713.   in any model to be estimated must be linear.   The fitted equations of  all 
  3714.   linear models estimated by SORITEC Sampler can be recovered and forecast.
  3715.  
  3716.        The  standard output from a SORITEC estimation command consists  of  a 
  3717.   coefficient  tableau and a summary tableau of regression diagnostics  which 
  3718.   includes the number of observations,  the standard error of the regression, 
  3719.   mean of the dependent variable,  R squared, R Bar squared, Durbin-Watson, F 
  3720.   test  of  overall  significance,  the log-likelihood,  and the  Akiake  and 
  3721.   Schwarz  statistics for model selection.   The user may have the  estimator 
  3722.   generate  additional  diagnostics by setting one or more  options  with  ON 
  3723.   commands,  which  must be executed before the regression command.   Use  of 
  3724.   these  options  is described in Chapter 2.   SORITEC estimation  procedures 
  3725.   support ON VCOV,  ON STATS,  ON CCOR, ON ANOVA, ON PLOT, ON RESIDUAL and ON 
  3726.   BETA  commands.   These options are associated with  SORITEC's  interactive 
  3727.   tableaus and are described in Chapter 10.
  3728.  
  3729.        When  the ON CRT option is invoked,  all estimation commands described 
  3730.   in  this chapter support the display in interactive tableaus of  regression 
  3731.   diagnostics.   These  tableaus  provide the user with a greater  number  of 
  3732.   regression diagnostics than are output by the estimation commands in  their 
  3733.   default modes.  Commands for invoking the interactive tableaus and descrip-
  3734.   tions of their contents are detailed in the next chapter.
  3735.  
  3736.  
  3737.   9.1  Ordinary Least Squares (OLS) Estimation
  3738.  
  3739.        The ordinary least squares estimator is invoked by the REGRESS command 
  3740.   which has the following syntax.
  3741.  
  3742.             REGRESS [(ORIGIN)] dep_var ind_var1 ind_var2  ... ind_varn
  3743.  
  3744.   The  dependent  variable must be the first argument in the  variable  list, 
  3745.   with  the independent variables following immediately as the second through 
  3746.   last arguments.   The keyword ORIGIN is optional and,  if specified, forces 
  3747.   SORITEC Sampler to estimate the equation without a constant  term.   Other-
  3748.   wise,  the  constant term is supplied automatically,  not by the user.   If 
  3749.   ORIGIN is specified in the command line,  it must be enclosed within paren-
  3750.  
  3751.  
  3752.                                  57
  3753.  
  3754.  
  3755.  
  3756.  
  3757.  
  3758.  
  3759.  
  3760.  
  3761.   theses.   When  the  regression plane is forced  through  the  origin,  the 
  3762.   regression diagnostics are adjusted accordingly.
  3763.  
  3764.  
  3765.   9.2  Autocorrelation Techniques for the Single Equation Model
  3766.  
  3767.        Two estimation techniques are available for estimating single equation 
  3768.   models when the user believes that the error terms are not independent, but 
  3769.   that  a  disturbance  in one period  influences  later  disturbances.   The 
  3770.   Cochrane-Orcutt (CORC) iterative technique and the Hildreth-Lu (HILU) scan-
  3771.   ning  technique estimate models assuming first order serial autocorrelation 
  3772.   of the disturbances.  
  3773.  
  3774.        When  either  autocorrelation technique is  invoked,  SORITEC  Sampler 
  3775.   temporarily  shortens  the USE period by one observation at  the  beginning 
  3776.   of  the  sample  and by one observation after every gap  to  calculate  the 
  3777.   required transformed data.   The USE command in  force,  therefore,  should 
  3778.   include the observations which are lost in the transformation of variables.  
  3779.   The  USE  period  is then restored to its original  interval(s)  after  the 
  3780.   command  is  completed.   Regression  diagnostics are calculated  from  the 
  3781.   residuals of the regression on the transformed variables.
  3782.  
  3783.  
  3784.        9.2.1  Cochrane-Orcutt Iterative Technique
  3785.  
  3786.        The Cochrane-Orcutt estimator is invoked by the command:
  3787.  
  3788.             CORC [(ORIGIN)] dep_var ind_var_1 ind_var_2  ... ind_var_n
  3789.  
  3790.   Command  syntax considerations are identical to those associated  with  the 
  3791.   REGRESS command described in the previous section.
  3792.  
  3793.  
  3794.        9.2.2  Hildreth-Lu Scanning Technique
  3795.  
  3796.        In addition to the dependent and independent variable lists,  the HILU 
  3797.   command  requires  that the lower and upper limits to the value of rho  and 
  3798.   its stepsize during the scanning process be initialized.   These values are 
  3799.   entered by the user into the command line by a set of positional parameters 
  3800.   that are optional.  The syntax of the HILU command is:
  3801.  
  3802.             HILU [([ORIGIN] ROMIN ROMAX ROSTEP)] dep_var &
  3803.                            ind_var_1 ind_var_2  ... ind_var_n
  3804.  
  3805.   where  the dependent and independent variable lists are positioned  similar 
  3806.   to the other regression commands.   ROMIN is an optional positional parame-
  3807.   ter that defines the lower limit of rho.   Similarly,  ROMAX specifies  the 
  3808.   upper limit to rho.  The stepsize of the scanning process is defined by the 
  3809.   third positional parameter, ROSTEP.  
  3810.  
  3811.        If  omitted  from the command line,  these parameters  assume  default 
  3812.   values  of  0.0,  1.0  and 0.1,  respectively.   The user  can  selectively 
  3813.   initialize these parameters by entering the wild card symbol * in positions 
  3814.   where  default values are to be assumed and the desired numeric  values  in 
  3815.   the other positions.  For example, the command:
  3816.  
  3817.  
  3818.                                  58
  3819.  
  3820.  
  3821.  
  3822.  
  3823.  
  3824.  
  3825.  
  3826.  
  3827.  
  3828.             HILU (* * .05) dep_var ind_var_1 ind_var_2  ... ind_var_n 
  3829.  
  3830.   initializes ROMIN and ROMAX to their default values of 0.0 and 0.1, respec-
  3831.   tively,  and sets ROSTEP to the user-selected value of 0.05.  If positional 
  3832.   parameters are entered into the command line,  they must be enclosed within 
  3833.   parentheses.
  3834.  
  3835.  
  3836.   9.3  Two-Stage Least Squares (2SLS) Estimates
  3837.  
  3838.        Consistent  estimates for a single equation from a simultaneous  equa-
  3839.   tion  system  can  be obtained by using a two-stage  least  squares  (2SLS) 
  3840.   estimator.   Unlike the other estimation commands in this chapter, the 2SLS 
  3841.   procedure  requires the user to enter two commands to estimate an equation.  
  3842.   First,  all  exogenous  variables  must be identified in an  the  EXOGENOUS 
  3843.   statement, which has the form:
  3844.  
  3845.             EXOGENOUS exog_var1 exog_var2  ... exog_varn
  3846.  
  3847.   All  arguments associated with this command are exogenous  variable  names.  
  3848.   The EXOGENOUS command must be specified before invoking the 2SLS estimator.  
  3849.   After  execution,  all later 2SLS commands use the same list  of  exogenous 
  3850.   variables until another EXOGENOUS command is entered.  
  3851.  
  3852.        Two-stage least squares estimation is invoked by the TWOSTAGE  command 
  3853.   which has the form:
  3854.  
  3855.             TWOSTAGE [(ORIGIN)] dep_var ind_var_1 ind_var_2  ... ind_var_n
  3856.  
  3857.   All  arguments  plus the ORIGIN keyword in the command line have  the  same 
  3858.   interpretation  as  used in the REGRESS command.   Two-stage least  squares 
  3859.   commands  that detect omitted or mis-specified exogenous variables generate 
  3860.   error messages until a valid EXOGENOUS command is executed.
  3861.  
  3862.  
  3863.   9.4  Forecasting Single Equation Models
  3864.  
  3865.        Any  single-equation model that has been estimated by SORITEC  Sampler 
  3866.   can  be  forecast  using the fitted equation that is stored  as  a  SORITEC 
  3867.   internal  variable.   To forecast an equation,  all of the  independent  or 
  3868.   right-hand  variables that were used to estimate it must be defined for the 
  3869.   period  over  which  the  forecast is to be  made.   These  values  may  be 
  3870.   observed, projected, assumed or may be the product of other forecasts.
  3871.  
  3872.        While  forecasting results from the execution of a single  command,  a 
  3873.   series of commands must be executed to generate meaningful results.
  3874.  
  3875.            (1) Estimate  a single equation model using the REGRESS, 
  3876.                CORC, HILU or TWOSTAGE command.
  3877.  
  3878.            (2) Change the active observation period to the forecast 
  3879.                period with the USE command.
  3880.  
  3881.  
  3882.  
  3883.  
  3884.                                  59
  3885.  
  3886.  
  3887.  
  3888.  
  3889.  
  3890.  
  3891.  
  3892.  
  3893.            (3) RECOVER the fitted equation from its internal system 
  3894.                name of FOREQ.
  3895.  
  3896.            (4) Use  the FORECAST  command to  forecast  the  fitted 
  3897.                equation over the desired time period.
  3898.  
  3899.   The format of the FORECAST command is:
  3900.  
  3901.             FORECAST fitted_equation_name
  3902.  
  3903.        Since  SORITEC internal system names may be referenced  directly  from 
  3904.   the FORECAST command,  step (3) is optional. In this case, the fitted equa-
  3905.   tion is forecast simply by entering:
  3906.  
  3907.             FORECAST ^FOREQ
  3908.  
  3909.   Use of the RECOVER command is necessary,  however, if you want to FORECAST 
  3910.   the  fitted  equation after estimating other models since SORITEC  replaces 
  3911.   ^FOREQ  each  time  an equation is  estimated.   Fitted  equations  can  be 
  3912.   databanked like most other SORITEC items.
  3913.  
  3914.        Forecasting  single equation models in SORITEC Sampler is  illustrated 
  3915.   in the example below.
  3916.  
  3917.             USE 1975Q1 1982Q4
  3918.             REGRESS gnp consumption investment(-1)
  3919.             RECOVER gnp_equation FOREQ
  3920.             USE 1983Q1 1984Q3
  3921.             FORECAST gnp_equation
  3922.             PRINT gnp
  3923.  
  3924.        If  the fitted equation is not need after being forecast,  the command 
  3925.   sequence is:
  3926.  
  3927.             USE 1975Q1 1982Q4
  3928.             REGRESS gnp consumption investment(-1)
  3929.             USE 1983Q1 1984Q3
  3930.             FORECAST ^FOREQ
  3931.             PRINT gnp
  3932.  
  3933.        The FORECAST command executes only a static forecast.  This means that 
  3934.   lagged  independent  variables  are not automatically  generated  for  each 
  3935.   successive  period  but instead must be supplied during the  forecast.   In 
  3936.   other words, the command sequence:
  3937.  
  3938.             USE 1980Q1 1984Q4
  3939.             REGRESS gnp gnp(-1)
  3940.             USE 1985Q1 1985Q4
  3941.             FORECAST ^FOREQ
  3942.  
  3943.   is  illegal  and generates an error if there are no data for  "gnp"  beyond 
  3944.   1985Q1.
  3945.  
  3946.        Note  that  the FORECAST command stores the forecasted values  of  the 
  3947.   dependent variable under the same name as the dependent variable previously 
  3948.  
  3949.  
  3950.                                  60
  3951.  
  3952.  
  3953.  
  3954.  
  3955.  
  3956.  
  3957.  
  3958.  
  3959.   defined.   This  means that any existing values for the dependent  variable 
  3960.   over  the  forecast  period are replaced  and  cannot  be  retrieved.   All 
  3961.   existing  values for the dependent variable outside the forecast period are 
  3962.   retained,  however, with the result that forecasted values are spliced into 
  3963.   the  original  series  as though the REVISE  command  has  been  used.   To 
  3964.   preserve  existing  values,  the dependent variable series should first  be 
  3965.   copied  to another series name or databanked before forecasting the  fitted 
  3966.   equation, e.g.,
  3967.  
  3968.             USE 1975Q1 1982Q4
  3969.             REGRESS gnp consumption investment(-1)
  3970.             RECOVER gnp_equation FOREQ
  3971.             USE 1983Q1 1984Q3
  3972.             temp_gnp = gnp
  3973.             FORECAST gnp_equation
  3974.             PRINT gnp temp_gnp
  3975.  
  3976.   As values for "temp_gnp" are MISSING prior to 1983Q1 (since the active  USE 
  3977.   period  was  1983Q1 to 1984Q3 when the transformation  was  executed),  the 
  3978.   original series is recreated by the command sequence:
  3979.  
  3980.             USE 1983Q1 1984Q3
  3981.             REVISE gnp = temp_gnp
  3982.  
  3983.   Alternatively,  copy  both  estimation and forecast period observations  to 
  3984.   temporary variables before forecasting an equation.
  3985.  
  3986.  
  3987.  
  3988.  
  3989.  
  3990.  
  3991.  
  3992.  
  3993.  
  3994.  
  3995.  
  3996.  
  3997.  
  3998.  
  3999.  
  4000.  
  4001.  
  4002.  
  4003.  
  4004.  
  4005.  
  4006.  
  4007.  
  4008.  
  4009.  
  4010.  
  4011.  
  4012.  
  4013.  
  4014.  
  4015.  
  4016.                                  61
  4017.  
  4018.  
  4019.  
  4020.  
  4021.  
  4022.  
  4023.  
  4024.  
  4025.  
  4026.  
  4027.  
  4028.  
  4029.  
  4030.                                     Chapter 10
  4031.                          SORITEC Interactive Print Server
  4032.  
  4033.  
  4034.   10.0 Introduction
  4035.  
  4036.        SORITEC  Sampler allows complete control over the output  presentation 
  4037.   for  selected  procedures.   In REGRESS and CROSSTAB the user controls  the 
  4038.   order and depth of the presentation of the results.   REGRESS generates  10 
  4039.   separate output summaries which may be selected,  or repeated, in any order 
  4040.   that  you  desire.   CROSSTABS allows you to scroll through  the  crosstabs 
  4041.   table  in a "spreadsheet" mode,  or switch to the table of summary  statis-
  4042.   tics.   In addition,  a HELP menu is provided which describes each  display 
  4043.   option.
  4044.  
  4045.        The  interactive regression display supports 10 different screen  dis-
  4046.   plays  including  3  tables of residual summaries,  a  residual  plot,  the 
  4047.   covariance matrix of coefficients,  the correlation matrix of coefficients, 
  4048.   extended regression reports (beta coefficient, partial r and elasticities), 
  4049.   a regression summary table,  the ANOVA table for goodness of fit, means and 
  4050.   standard deviations of the independent variables and of course the  regres-
  4051.   sion estimates.
  4052.  
  4053.        When  the interactive mode is in effect,  a selection menu appears  on 
  4054.   the  last line of the screen.   Entering a ?  will bring up a more detailed 
  4055.   help  menu regarding the contents of each display.   Selecting  an  invalid 
  4056.   choice  sounds the "bell" and prompts you for another  choice.   There  are 
  4057.   several  additional special keystrokes,  in addition to those in the selec-
  4058.   tion menu, that control interactive display.  Entering a carriage return, a 
  4059.   '+'  or a space  advances the display to the next tableau in the  selection 
  4060.   menu.   Entering  a backspace returns you to the previously displayed  tab-
  4061.   leau.  Entering a '-' displays the previous screen in the selection menu.  
  4062.  
  4063.        The interactive option is available for REGRESS, TSLS, CORC, and HILU. 
  4064.  
  4065.  
  4066.   10.1 Entering Interactive Mode
  4067.  
  4068.        To enable the interactive mode you must turn on the option by entering 
  4069.   the command:
  4070.  
  4071.             ON CRT
  4072.  
  4073.   When this option is enabled, SORITEC Sampler automatically switches into an 
  4074.   interactive  presentation whenever a command is executed that supports  the 
  4075.   interactive tableaus.
  4076.  
  4077.        To stop the interactive presentation,  enter OFF CRT.  SORITEC Sampler 
  4078.   will resume normal output presentation.  
  4079.  
  4080.  
  4081.  
  4082.                                  62
  4083.  
  4084.  
  4085.  
  4086.  
  4087.  
  4088.  
  4089.  
  4090.  
  4091.  
  4092.   10.2 Tableau Descriptions
  4093.  
  4094.        The  following sections discuss each tableau and their associated menu 
  4095.   selection codes available with SORITEC estimation commands.
  4096.  
  4097.  
  4098.        10.2.1  Coefficient Display (E)
  4099.  
  4100.        Coefficient  estimates are automatically displayed when the regression 
  4101.   equation is estimated.   The presentation shows the technique,  the current 
  4102.   sample period, coefficients, standard errors, t-values and the significance 
  4103.   levels of the t statistic.  
  4104.  
  4105.  
  4106.        10.2.2  Regression Summary Table (G)
  4107.  
  4108.        The  regression summary table provides a quick synopsis of the regres-
  4109.   sion.   The table reports the number of observations, mean of the dependent 
  4110.   variable,  the log-likelihood ratio, Schwarz and Akaike criteria, R-squared 
  4111.   (adjusted),  the  standard error of the regression,  Durbin-Watson  and  F-
  4112.   statistics and the significance of the F-statistic.    If the ORIGIN option 
  4113.   is specified, the statistics are adjusted appropriately.
  4114.  
  4115.  
  4116.        10.2.3  Residual Autocorrelation Summary (R)
  4117.  
  4118.        The residual summary table provides information on the distribution of 
  4119.   the  residuals  (mean,  variance,  skewness,  kurtosis,  minimum,  maximum, 
  4120.   average  absolute  error,  etc.)  and the autocorrelation structure of  the 
  4121.   residuals with Durbin-Watson ( for one,  four and 12 periods) and the first 
  4122.   24 Box-Pierce statistics.   All these statistics,  along with the first  24 
  4123.   autocorrelation coefficients, may be recovered for later analysis.
  4124.  
  4125.  
  4126.        10.2.4  PDF and Histogram of Standardized Residuals (H)
  4127.  
  4128.        This  table provides a quick summary of the distribution of the  resi-
  4129.   duals  for quick identification of outliers or a skewed  distribution,  and 
  4130.   shows the percentage of residuals falling between each integer multiple  of 
  4131.   the  regression  error variance,  including a histogram of the same  infor-
  4132.   mation.  The  histogram information has a higher resolution than the  table 
  4133.   since  each  line  of the screen represents 1/3 of  a  standard  deviation.  
  4134.   Because of this,  scale may at times appear to be off somewhat; specifical-
  4135.   ly,  if  the maximum table value is 40% the maximum vertical value  on  the 
  4136.   plot might be, say, 17%. 
  4137.  
  4138.  
  4139.        10.2.5  Non-Parametric Residual Distribution Tests (N)
  4140.  
  4141.        This table provides a set of statistical tests on the normalcy of  the 
  4142.   residual  distribution as well as tests of the randomness of the residuals.  
  4143.   Specifically, SORITEC Sampler carries out a "Run of Signs" test for random-
  4144.   ness,  a chi-square test against the normal distribution,  and a Kolmogorov 
  4145.   test for normality. 
  4146.  
  4147.  
  4148.                                  63
  4149.  
  4150.  
  4151.  
  4152.  
  4153.  
  4154.  
  4155.  
  4156.  
  4157.  
  4158.  
  4159.        10.2.6  Regression ANOVA Table (A)
  4160.  
  4161.        This  is  the standard ANOVA table showing the derivation  of  the  F- 
  4162.   statistic reported in the summary table.  Similar to the summary table, all 
  4163.   reported statistics are adjusted appropriately when the regression equation 
  4164.   is constrained through the origin.  ON ANOVA will activate this output when 
  4165.   the OFF CRT flag, or non-interactive mode, is set.
  4166.  
  4167.  
  4168.        10.2.7  Covariance Matrix of Coefficient Estimates (V)
  4169.  
  4170.        This  tableau  displays a variance-covariance matrix  of  the  coeffi-
  4171.   cients.   It  is equivalent to the display produced by the ON  VCOV  option 
  4172.   when the OFF CRT option is set.
  4173.  
  4174.  
  4175.        10.2.8  Correlation Matrix of Coefficient Estimates (C)
  4176.  
  4177.        Although  there  is little theory regarding the correlation matrix  of 
  4178.   coefficient estimates, it does provide a quick way to examine the relation-
  4179.   ship between pairs of coefficients.   ON CCOR will present this display  in 
  4180.   when SORITEC Sampler is in OFF CRT mode.
  4181.  
  4182.  
  4183.        10.2.9  Beta Coefficients, Elasticities and Partial R (B)
  4184.  
  4185.        This tableau presents coefficient estimates and their associated  Beta 
  4186.   coefficients,  elasticities and partial correlation coefficients.   ON BETA 
  4187.   enables this display when the OFF CRT option is set.
  4188.  
  4189.  
  4190.        10.2.10  Statistical Summary of Exogenous Variables (S)
  4191.  
  4192.        This  table reports the mean and standard deviation of the independent 
  4193.   variables.  When the OFF CRT option is set, this display is activated by ON 
  4194.   STATS.
  4195.  
  4196.  
  4197.        10.2.11  Actual vs Fitted Plot and Standardized Residuals (P)
  4198.  
  4199.        This display shows the actual versus fitted and standardized residuals 
  4200.   for the regression.  The plot is produced in a form that is reproducable by 
  4201.   line  printers unless your PC has an IBM color graphics compatible display.  
  4202.   In that case,  the plots appear in 3-color medium resolution mode.  ON PLOT 
  4203.   activates this output when the OFF CRT option is set.
  4204.  
  4205.  
  4206.  
  4207.  
  4208.  
  4209.  
  4210.  
  4211.  
  4212.  
  4213.  
  4214.                                  64
  4215.  
  4216.  
  4217.  
  4218.  
  4219.  
  4220.  
  4221.  
  4222.  
  4223.   10.3  Interactive Crosstabs
  4224.  
  4225.        The XTAB command allows for interactive scrolling through the table in 
  4226.   a  spreadsheet manner along with the option to present the summary  statis-
  4227.   tics for the current table.  In this mode, keys are interpreted as follows: 
  4228.   (X)  move down one screen,  (S) move left one screen,  (D) move  right  one 
  4229.   screen,  (E)  move  up one screen,  (T) to view the summary table  of  test 
  4230.   statistics, and (Q) to quit the crosstabs.
  4231.  
  4232.  
  4233.  
  4234.  
  4235.  
  4236.  
  4237.  
  4238.  
  4239.  
  4240.  
  4241.  
  4242.  
  4243.  
  4244.  
  4245.  
  4246.  
  4247.  
  4248.  
  4249.  
  4250.  
  4251.  
  4252.  
  4253.  
  4254.  
  4255.  
  4256.  
  4257.  
  4258.  
  4259.  
  4260.  
  4261.  
  4262.  
  4263.  
  4264.  
  4265.  
  4266.  
  4267.  
  4268.  
  4269.  
  4270.  
  4271.  
  4272.  
  4273.  
  4274.  
  4275.  
  4276.  
  4277.  
  4278.  
  4279.  
  4280.                                  65
  4281.  
  4282.  
  4283.  
  4284.  
  4285.  
  4286.  
  4287.  
  4288.  
  4289.                                   APPENDIX I
  4290.                          SORITEC INTERNAL SYSTEM NAMES
  4291.  
  4292.   --------------------------------------------------------------------------
  4293.   INTERNAL     TYPE        PRODUCED
  4294.    SYSTEM       OF            BY
  4295.     NAME       ITEM        COMMANDS*      LENGTH          DESCRIPTION
  4296.   --------------------------------------------------------------------------
  4297.    CCOR      MATRIX        (5)            NV**2      CORRELATION MATRIX OF
  4298.                                                      COEFFICIENTS
  4299.  
  4300.    COEF      VECTOR        (5)            NV         REGRESSION COEFFICIENTS
  4301.  
  4302.    COR       MATRIX        CORREL         NARGS**2   CORRELATION MATRIX
  4303.  
  4304.    COV       MATRIX        COVAR, CORREL  NARGS**2   COVARIANCE MATRIX
  4305.  
  4306.    DEP       ALPHANUMERIC  (2),(3),       1          NAME OF DEPENDENT 
  4307.              ITEMS         ALMON,REGRESS,            VARIABLE
  4308.                            TWOSTAGE
  4309.  
  4310.    DEVS      VECTOR        STATS,CORREL   NARGS      STANDARD DEVIATIONS OF
  4311.                                                      VARIABLES
  4312.  
  4313.    DW        CONSTANT      (5)                       DURBIN-WATSON STATISTIC
  4314.  
  4315.    FACTOR    VARIABLE      ADJUST         NOBS       SEASONAL FACTOR SERIES
  4316.  
  4317.    FOREQ     EQUATION      REGRESS,       N/A        FITTED EQUATION FOR
  4318.                            TWOSTAGE                  FORECASTING
  4319.  
  4320.    GAPS      CONSTANT      USE                       NUMBER OF GAPS IN
  4321.                                                      CURRENT USE COMMAND
  4322.  
  4323.    ITERS     CONSTANT      (2),(3),(4)               ITERATIONS USED IN
  4324.                                                      ARRIVING AT COEFFICIENTS
  4325.  
  4326.    LAGCOi    VECTOR        ALMON          NDEGi+1    LAG COEFFICIENTS ON iTH
  4327.                                                      DISTRIBUTED LAG VARIABLE
  4328.  
  4329.    LAGSEi    VECTOR        ALMON          NDEGi+1    STANDARD ERRORS OF  LAG
  4330.                                                      COEFFICIENTS LAGCO(i)
  4331.  
  4332.    LAGSUMi   CONSTANT      ALMON                     SUM OF LAG COEFFICIENTS
  4333.                                                      FOR iTH DISTRIBUTED LAG
  4334.                                                      VARIABLE
  4335.  
  4336.    MEANS     VECTOR        STATS,CORREL   NARGS      MEANS OF VARIABLES
  4337.  
  4338.    MLAGi     CONSTANT      ALMON                     MEAN LAG FOR iTH DISTRI-
  4339.                                                      BUTED LAG VARIABLE
  4340.  
  4341.    NARGS     CONSTANT      COVAR,CORREL,             NUMBER OF VARIABLES IN
  4342.                            STATS                     ARGUMENT LIST
  4343.  
  4344.  
  4345.  
  4346.                                  66
  4347.  
  4348.  
  4349.  
  4350.  
  4351.  
  4352.  
  4353.  
  4354.  
  4355.                               APPENDIX I (cont'd)
  4356.                          SORITEC INTERNAL SYSTEM NAMES
  4357.  
  4358.   --------------------------------------------------------------------------
  4359.   INTERNAL     TYPE        PRODUCED
  4360.    SYSTEM       OF            BY
  4361.     NAME       ITEM        COMMANDS*      LENGTH          DESCRIPTION
  4362.   --------------------------------------------------------------------------
  4363.  
  4364.    NDEGi     CONSTANT      ALMON                     DEGREE OF iTH
  4365.                                                      DISTRIBUTED LAG VARIABLE
  4366.  
  4367.    NEQ       CONSTANT      (4)                       NUMBER OF EQUATIONS
  4368.                                                      ESTIMATED
  4369.  
  4370.    NGAPS     CONSTANT      (5)                       NUMBER OF GAPS IN USE
  4371.                                                      USED FOR LAST REGRESSION
  4372.  
  4373.    NOBS      CONSTANT      (5)                       NUMBER OF OBSERVATIONS
  4374.                                                      USED IN LAST REGRESSION
  4375.  
  4376.    NV        CONSTANT      REGRESS,(2),(3),          NUMBER OF INDEPENDENT
  4377.                            TWOSTAGE                  RIGHT-HAND VARIABLES IN
  4378.                                                      LAST REGRESSION
  4379.  
  4380.    NV        CONSTANT      (4), ALMON                NUMBER OF COEFFICIENTS
  4381.                                                      OR PARAMETERS ESTIMATED
  4382.                                                      BY LAST (4) OR ALMON
  4383.                                                      COMMAND
  4384.  
  4385.    OBS       CONSTANT      USE                       NUMBER OF OBSERVATIONS
  4386.                                                      IN CURRENT USE
  4387.  
  4388.    RAWEQ     EQUATION      REGRESS,       N/A        USER'S ORIGINAL
  4389.                            TWOSTAGE                  UNFITTED EQUATION
  4390.  
  4391.    REGSE     CONSTANT      (2),(3), ALMON            STANDARD ERROR OF
  4392.                            REGRESS,TWOSTAGE          REGRESSION
  4393.  
  4394.    RHO       CONSTANT      (2)                       1ST-ORDER AUTO-CORREL-
  4395.                                                      ATION COEFFICIENT
  4396.  
  4397.    RHO       VECTOR        (3)            2          1ST-ORDER AND 2ND-ORDER
  4398.                                                      AUTO-CORRELATION
  4399.                                                      COEFFICIENTS
  4400.  
  4401.    RSQ       CONSTANT      (5)                       R-SQUARED
  4402.  
  4403.    RSQADJ    CONSTANT      (5)                       R-SQUARED ADJUSTED FOR
  4404.                                                      DEGREES OF FREEDOM
  4405.  
  4406.    SE        VECTOR        (5)            NV         COEFFICIENT STANDARD
  4407.                                                      ERRORS
  4408.  
  4409.  
  4410.  
  4411.  
  4412.                                  67
  4413.  
  4414.  
  4415.  
  4416.  
  4417.  
  4418.  
  4419.  
  4420.  
  4421.                               APPENDIX I (cont'd)
  4422.                          SORITEC INTERNAL SYSTEM NAMES
  4423.  
  4424.   --------------------------------------------------------------------------
  4425.   INTERNAL     TYPE        PRODUCED
  4426.    SYSTEM       OF            BY
  4427.     NAME       ITEM        COMMANDS*      LENGTH          DESCRIPTION
  4428.   --------------------------------------------------------------------------
  4429.  
  4430.    SSR       CONSTANT      ALMON,REGRESS             SUM OF SQUARED 
  4431.                            TWOSTAGE,(2),(3)          RESIDUALS
  4432.  
  4433.    VCOV      MATRIX        (5)            NV**2      VARIANCE-COVARIANCE
  4434.                                                      MATRIX OF COEFFICIENTS
  4435.  
  4436.    YFIT      VARIABLE      (5)            NOBS       FITTED VALUES
  4437.  
  4438.    YMEAN     CONSTANT      ALMON,REGRESS             MEAN OF DEPENDENT
  4439.                            TWOSTAGE,(2),(3)          VARIABLE
  4440.   --------------------------------------------------------------------------
  4441.   *INTERNAL RESULTS ARE PRODUCED BY THE COMMANDS ASSOCIATED WITH THE FOLLOWING
  4442.   NUMBERS:
  4443.    (1)  REGRESS, TWOSTAGE, MVR, THREESTAGE
  4444.    (2)  HILU, TSHILU, CORC, TSCORC
  4445.    (3)  HILU2, TSHILU2, CORC2, TSCORC2
  4446.    (4)  MVR, THREESTAGE, nonlinear REGRESS, nonlinear TWOSTAGE
  4447.    (5)  ALMON, (1), (2), (3)
  4448.  
  4449.   NOTE:  Not all commands are available in SORITEC Sampler.
  4450.  
  4451.  
  4452.  
  4453.  
  4454.  
  4455.  
  4456.  
  4457.  
  4458.  
  4459.  
  4460.  
  4461.  
  4462.  
  4463.  
  4464.  
  4465.  
  4466.  
  4467.  
  4468.  
  4469.  
  4470.  
  4471.  
  4472.  
  4473.  
  4474.  
  4475.  
  4476.  
  4477.  
  4478.                                  68
  4479.  
  4480.  
  4481.  
  4482.  
  4483.  
  4484.  
  4485.  
  4486.  
  4487.                                   APPENDIX II
  4488.                 GLOBAL OPTIONS AND DEFAULT SETTINGS IN SORITEC
  4489.                 ----------------------------------------------
  4490.  
  4491.                DEFAULT                  
  4492.        OPTION  SETTING                  DESCRIPTION
  4493.        ------  -------                  -----------
  4494.        ALIAS     OFF       The   ALIAS option controls the  printing  of 
  4495.                            variable  names in output produced by SORITEC 
  4496.                            commands invoked from a PROCEDURE.  It is not 
  4497.                            supported in SORITEC Sampler.
  4498.  
  4499.        ANOVA     OFF       When  the  OFF CRT option is  in  effect,  ON 
  4500.                            ANOVA   generates  a  standard  ANOVA   table 
  4501.                            with  SORITEC estimation results showing  the 
  4502.                            derivation  of  the F- statistic reported  in 
  4503.                            the summary table.  It is otherwise generated 
  4504.                            by the A-key in interactive mode. 
  4505.  
  4506.        BETA      OFF       When the OFF CRT option is in effect, ON BETA 
  4507.                            generates  the  regression tableau that  pre-
  4508.                            sents   coefficient   estimates   and   their 
  4509.                            associated  Beta  coefficients,  elasticities 
  4510.                            and  partial correlation  coefficients.  This 
  4511.                            tableau  is  also generated by the  B-key  in 
  4512.                            interactive mode.  
  4513.  
  4514.        BRIEF     OFF       Suppresses command number prompts in interac-
  4515.                            tive mode,  as well as messages reminding the 
  4516.                            user to close DO loops and procedures, and to 
  4517.                            satisfy outstanding GO TO's.
  4518.  
  4519.        CCOR      OFF       Correlation matrix of regression coefficients 
  4520.                            is printed after every regression.
  4521.  
  4522.        CRT       OFF       The  CRT  option is used  with  the  PAGESIZE 
  4523.                            command to control SORITEC output to the  CRT 
  4524.                            terminal.    When  the  CRT  option  is   ON,  
  4525.                            SORITEC   prints only PAGESIZE or fewer lines 
  4526.                            of  information before pausing.   Entering  a 
  4527.                            carriage return resumes output.   ON CRT also 
  4528.                            enables   the   tableaus   associated    with 
  4529.                            SORITEC's estimation and XTAB commands.
  4530.  
  4531.  
  4532.        DETAIL    OFF       Not implemented at this release.
  4533.  
  4534.  
  4535.        DIVZERO   ON        Not implemented at this release.
  4536.  
  4537.        DOLLAR    OFF       When   the   DOLLAR   flag  is   turned   ON,  
  4538.                            dollar   signs  in SORITEC input  are  inter-
  4539.                            preted as semicolons (statement  separators).  
  4540.                            Use of this  feature  is  not recommended and 
  4541.                            the flag will be removed in a future release.  
  4542.  
  4543.  
  4544.                                  69
  4545.  
  4546.  
  4547.  
  4548.  
  4549.  
  4550.  
  4551.  
  4552.  
  4553.                            APPENDIX II(cont'd)
  4554.                 GLOBAL OPTIONS AND DEFAULT SETTINGS IN SORITEC
  4555.                 ----------------------------------------------
  4556.  
  4557.                DEFAULT                  
  4558.        OPTION  SETTING                  DESCRIPTION
  4559.        ------  -------                  -----------
  4560.        DYNAMIC   OFF       Causes   transformations   involving   lagged 
  4561.                            variables to be performed dynamically instead 
  4562.                            of statically.
  4563.  
  4564.        ECHO      OFF       Echos input lines to output device.
  4565.  
  4566.        GROUP     OFF       Enables    automatic   group   expansion   in 
  4567.                            commands.
  4568.  
  4569.        HEAD      ON        Prints  standard headings on each page (batch 
  4570.                            runs only).
  4571.  
  4572.        JOURNAL   OFF       The JOURNAL flag  controls  writing of  inte-
  4573.                            ractive  input  to  the journal file.   It is 
  4574.                            set  OFF when SORITEC begins execution and is 
  4575.                            set  ON when interactive processing  mode  is 
  4576.                            invoked by the HELLO command.  
  4577.  
  4578.        LOG       OFF       Not implemented at this release.
  4579.  
  4580.        MISSING   ON        Causes  warning messages to print  where  the 
  4581.                            user  accesses observations which never  have 
  4582.                            been given a value.
  4583.  
  4584.        NEGEXP    OFF       Not implemented at this release.
  4585.  
  4586.  
  4587.        NEGLOG    ON        Not implemented at this release.
  4588.  
  4589.  
  4590.        NOEJECT   OFF       Not implemented at this release.
  4591.  
  4592.  
  4593.        NOERROR   OFF       Not implemented at this release.
  4594.  
  4595.        NOMATS    ON        Saves workspace by suppressing storage of the 
  4596.                            VCOV,  CCOR, and RAWEQ internal results after 
  4597.                            each regression.
  4598.     
  4599.        PERFECT   OFF       Not implemented at this release.
  4600.  
  4601.        PLOT      OFF       Plots  actual  versus fitted  values  of  the 
  4602.                            dependent  variable  after every  regression.  
  4603.                            The plot is generated in a form  reproducable 
  4604.                            by  line  printers unless your PC has an  IBM 
  4605.                            color graphics compatible display,  in  which 
  4606.                            case  it appears in 3-color medium resolution 
  4607.                            mode.
  4608.  
  4609.  
  4610.                                  70
  4611.  
  4612.  
  4613.  
  4614.  
  4615.  
  4616.  
  4617.  
  4618.  
  4619.                            APPENDIX II(cont'd)
  4620.                 GLOBAL OPTIONS AND DEFAULT SETTINGS IN SORITEC
  4621.                 ----------------------------------------------
  4622.  
  4623.                DEFAULT                  
  4624.        OPTION  SETTING                  DESCRIPTION
  4625.        ------  -------                  -----------
  4626.        PRINT     OFF       Controls  printing  of intermediate  computa-
  4627.                            tional results
  4628.  
  4629.        PROMPT    OFF       Not implemented at this release.
  4630.  
  4631.        RAGGED    OFF       When enabled, the RAGGED option allows you to 
  4632.                            assign fewer observations to a variable using 
  4633.                            the FILL command than are associated with the 
  4634.                            current  USE  period.    Usually,   an  error 
  4635.                            message  is  generated  when  this  condition 
  4636.                            exists.    FILL  assigns  MISSING  values  to 
  4637.                            observations beyond the end of shorter series 
  4638.                            to the end of the USE period.  ON RAGGED does 
  4639.                            NOT  permit  the entry of  more  observations 
  4640.                            than specified in the current USE period.
  4641.  
  4642.        RAWEQ     ON        The  RAWEQ option,  when enabled,  stores the 
  4643.                            raw  equation associated with any  regression 
  4644.                            estimated   by  SORITEC  under  the  internal 
  4645.                            variable name ^RAWEQ.   Disabling the  option 
  4646.                            saves symbol table space, since several coef-
  4647.                            ficients  are stored  for each RAWEQ entry.
  4648.  
  4649.        REPLACE   OFF       When  REPLACE is turned ON,  the  databanking 
  4650.                            KEEP  command  saves items on  the  currently 
  4651.                            ACCESSed  databank regardless of whether name  
  4652.                            conflicts  occur  with  items already  stored 
  4653.                            in the databank.   In other words,  KEEP acts 
  4654.                            like  a  REPLACE command when this option  is 
  4655.                            enabled.
  4656.  
  4657.        RESIDUAL  OFF       When  the OFF CRT option is  in  effect,  the 
  4658.                            RESIDUAL global option generates three of the 
  4659.                            tableaus  associated with regression tableaus 
  4660.                            in CRT mode.   These are:
  4661.  
  4662.                            (1)  the Residual Summary Table that provides 
  4663.                            information on the distribution of the  resi-
  4664.                            duals (mean,  variance,  skewness,  kurtosis, 
  4665.                            minimum,  maximum,  average  absolute  error, 
  4666.                            etc.)   and the autocorrelation structure  of 
  4667.                            the  residuals with Durbin-Watson ( for  one, 
  4668.                            four  and  12 periods) and the first 24  Box-
  4669.                            Pierce statistics.   
  4670.  
  4671.                            (2)  PDF and Histogram of Standardized  Resi-
  4672.                            duals,  providing a quick summary of the dis-
  4673.                            tribution of the residuals for quick  identi-
  4674.  
  4675.  
  4676.                                  71
  4677.  
  4678.  
  4679.  
  4680.  
  4681.  
  4682.  
  4683.  
  4684.  
  4685.                            APPENDIX II(cont'd)
  4686.                 GLOBAL OPTIONS AND DEFAULT SETTINGS IN SORITEC
  4687.                 ----------------------------------------------
  4688.                DEFAULT                  
  4689.        OPTION  SETTING                  DESCRIPTION
  4690.        ------  -------                  -----------
  4691.                            fication  of  outliers or a skewed  distribu-
  4692.                            tion.   It also shows the percentage of resi-
  4693.                            duals  falling between each integer  multiple 
  4694.                            of the regression error variance, including a 
  4695.                            histogram of the same information. 
  4696.  
  4697.                            (3)   Non-Parametric  Residual   Distribution 
  4698.                            Tests,  providing  a set of statistical tests 
  4699.                            on the normalcy of the residual  distribution 
  4700.                            as  well  as tests of the randomness  of  the 
  4701.                            residuals.
  4702.  
  4703.        REVISE    OFF       Enables  automatic  splicing and updating  of 
  4704.                            time-series.   With   REVISE  set   ON,   all 
  4705.                            assignment  and  FILL  statements  behave  as 
  4706.                            though they are prefixed by a REVISE command.  
  4707.                            This means that observations  are  added   to 
  4708.                            existing  series if the current USE period is 
  4709.                            outside  the  range of the USE  period  under 
  4710.                            which the data series was last  defined.   If  
  4711.                            the current USE period is a subset of the USE 
  4712.                            period  under  which the symbol was last  de-
  4713.                            fined, no truncation of the series occurs.
  4714.  
  4715.        SMPL      OFF       Not implemented at this release.
  4716.  
  4717.  
  4718.        STATS     OFF       Mean   and   standard   deviation   of    all 
  4719.                            independent variables in a regression.
  4720.  
  4721.        STREAMIO  OFF       When  enabled,  this option allows  formatted 
  4722.                            READ commands to read successive observations 
  4723.                            of a variable along a row, rather than down a 
  4724.                            column, as normally expected.
  4725.  
  4726.        TRAIL     OFF       When  enabled,  the TRAIL option generates  a 
  4727.                            debug trail for diagnosing SORITEC bugs.  
  4728.  
  4729.        UPRINT    ON        UPRINT  controls the printing of  underscores 
  4730.                            (_) in variable names.  When enabled, SORITEC 
  4731.                            prints the underscores.
  4732.  
  4733.        VCOV      OFF       Variance-covariance   matrix  of   regression 
  4734.                            coefficients    is   printed   after    every 
  4735.                            regression.
  4736.  
  4737.  
  4738.  
  4739.  
  4740.  
  4741.  
  4742.                                  72
  4743.  
  4744.  
  4745.  
  4746.  
  4747.  
  4748.  
  4749.  
  4750.  
  4751.                                  APPENDIX III
  4752.               QUICK REFERENCE LISTING OF SORITEC Sampler COMMANDS
  4753.  
  4754.           ACCESS filename
  4755.           ACCESS 'd:filename'
  4756.           ACCESS '\directory1\directory2\filename'
  4757.           AMORT([PERIOD=<D,W,T,M,Q,S,A>,<SIMPLE,COMPOUND>], &
  4758.                [RULEOF78],[BALLOON=#]) &
  4759.                payment loan interest_rate [aux_pay_1 ... aux_pay_n]
  4760.  
  4761.           COMPUTE equation_name
  4762.           [COMPUTE] transformation_expression
  4763.           CONSTANT const_1 [value_1] const_2 [value_2] ...
  4764.           CONTENTS [filename]
  4765.           CONTENTS 'd:filename'
  4766.           CONTENTS '\directory1\directory2\file
  4767.           Statement_number CONTINUE
  4768.           CONVERT [(modifier)] input_series
  4769.           CONVERT [(modifier)] output_series = input_series
  4770.           COPY item_1 item_2 ... item_n
  4771.           CORC [(ORIGIN)] dep_var ind_var_1 ind_var_2  ... ind_var_n
  4772.           CORREL series_1 series_2 series_3 ...
  4773.           COVA series_1 series_2 series_3 ...
  4774.           CREATE filename
  4775.           CREATE 'd:filename'
  4776.           CREATE '\directory1\directory2\filename'
  4777.  
  4778.           DISCARD item_1 item_2 ... item_n
  4779.           DO index = beginning_value TO end_value BY increment
  4780.             END
  4781.           DOT variable_1 variable_2 ... variable_n
  4782.             ENDDOT
  4783.           DUMMY output_series first_observation skip_increment
  4784.  
  4785.           END
  4786.           ENDDOT
  4787.           EQUATION equation_name [equation]
  4788.           EXECUTE filename
  4789.           EXECUTE 'd:filename'
  4790.           EXECUTE '\path\filename'
  4791.           EXOGENOUS exog_var_1 exog_var_2 ... exog_var_n
  4792.  
  4793.           FILL variable_name value_list
  4794.           FLAGS flag_vector
  4795.           FORECAST fitted_equation_name
  4796.           FORECAST ^FOREQ
  4797.           Statement_number FORMAT format_specification
  4798.          *FORGET [item_name]
  4799.        
  4800.   -----------------------------
  4801.        * denotes commands that accept wildcard characters in arguments.
  4802.  
  4803.  
  4804.  
  4805.  
  4806.  
  4807.  
  4808.                                  73
  4809.  
  4810.  
  4811.  
  4812.  
  4813.  
  4814.  
  4815.  
  4816.  
  4817.                              APPENDIX III(cont'd)
  4818.               QUICK REFERENCE LISTING OF SORITEC Sampler COMMANDS
  4819.  
  4820.           GO TO statement_number  (also GOTO)
  4821.          *GROUP group_name name_1 name_2 ... name_n
  4822.  
  4823.           HELLO
  4824.           HILU [([ORIGIN] ROMIN ROMAX ROSTEP)] dep_var ind_var_1 & 
  4825.                                                     ind_var_2  ... ind_var_n
  4826.  
  4827.           IF condition; THEN; command_sequence_1; ELSE; command_sequence_2
  4828.           IMPUTE  [ZERO|MEAN|INTER|TREND|NONE]
  4829.           IRR([CAPITAL=#,ITER=#,TOL=#,INITIALR=#]) &
  4830.                            interest_rate net_income_series 
  4831.           IRR([CAPITAL=#,ITER=#,TOL=#,INITIALR=#]) interest_rate benefits costs
  4832.  
  4833.           JOB job_label
  4834.  
  4835.           KEEP item_1 item_2 ... item_n
  4836.           KEEP(ACTIVE) item_1 item_2 ... item_n
  4837.  
  4838.           MA output_series input_series length
  4839.           MAX maximum_value input_series
  4840.           MAX output_series input_series_1 input_series_2 ...
  4841.           MAXERR number
  4842.           MEAN mean input_series
  4843.           MIN minimum_value input_series
  4844.           MIN output_series input_series_1 input_series_2 ...
  4845.           MISSING constant_name
  4846.           MOD remainder dividend divisor
  4847.           MSUM output_series input_series length
  4848.  
  4849.           OFFLIST
  4850.           ONLIST
  4851.  
  4852.           PARAMETER param_1 [value_1] param_2 [value_2] ... 
  4853.           PLOT series_1 symbol_1 series_2 symbol_2 ...
  4854.           PRINT arg_1 arg_2 arg_3 ...
  4855.           PUNCH series_1 series_2 ...
  4856.           PUNCHDIF[(filename)] arg_1 arg_2 arg_3 ...
  4857.           PUNCHDIF('[d:][\path\]filename') arg_1 arg_2 arg_3 ...
  4858.           PURGE filename
  4859.           PURGE '[d:][\path\]filename'
  4860.           PV([PERIOD=<D,W,T,M,Q,S,A>,<SIMPLE,COMPOUND>]) ...
  4861.                   present_value net_income_stream <costs> interest_rate
  4862.  
  4863.           QUIT
  4864.  
  4865.   -----------------------------
  4866.        * denotes commands that accept wildcard characters in arguments.
  4867.  
  4868.  
  4869.  
  4870.  
  4871.  
  4872.  
  4873.  
  4874.                                  74
  4875.  
  4876.  
  4877.  
  4878.  
  4879.  
  4880.  
  4881.  
  4882.  
  4883.                              APPENDIX III(cont'd)
  4884.               QUICK REFERENCE LISTING OF SORITEC Sampler COMMANDS
  4885.  
  4886.           READ(filename)
  4887.           READ('[d:][\path\]filename')
  4888.           READ([filename] [statement_number]) series_1 series_2 ...
  4889.           READ(['[d:][\path\]filename'] [statement_number]) &
  4890.                                             series_1 series_2 ...
  4891.           READDIF(filename)
  4892.           READDIF('[d:][\path\]filename')
  4893.           READDIF(filename) series_1 series_2 ...
  4894.           READDIF([filename] statement_number) series_1 series_2 ...
  4895.           RECODE output_series input_series p(1) p(2) p(3) p(4) ...
  4896.           RECOVER [new_name] internal_name
  4897.           REGRESS [(ORIGIN)] dep_var ind_var_1 ind_var_2  ... ind_var_n
  4898.           RENAME new_name_1 old_name_1 new_name_2 old_name_2 ...
  4899.           REPLACE item_1 item_2 ... item_n
  4900.           RETURN
  4901.           REVISE transformation_expression
  4902.           RMS root_mean_square input_series
  4903.  
  4904.           SCAN number
  4905.           SCATTER series_1 series_2
  4906.           SSR sum_squared_resids input_series
  4907.           SUM sum input_series
  4908.           SWITCH item_1 item_2
  4909.           SYNOPSIS var_1 var_2 ... var_n
  4910.          *SYMBOLS [ALL]
  4911.  
  4912.           TIME [series_name]
  4913.           TITLE [label]
  4914.           TWOSTAGE [(ORIGIN)] dep_var ind_var_1 ind_var_2  ... ind_var_n
  4915.  
  4916.           USE [begin_1] [end_1] [begin_2] [end_2] ...
  4917.           USEIF expression
  4918.  
  4919.           VECTOR vector_name value_1 value_2 ...
  4920.  
  4921.           WIDTH number
  4922.           WRITE([filename] [statement_number]) var_1 var_2 ...
  4923.           WRITE(['[d:][\path\][filename]'] [statement_number]) &
  4924.                                                var_1 var_2 ...
  4925.           WRITE([filename] [statement_number]) constant_1 (time_series_1 &
  4926.                            time_series_2) constant_2
  4927.           WRITE(['[d:][\path\][filename]'] [statement_number]) &
  4928.                            constant_1 (time_series_1 &
  4929.                            time_series_2) constant_2
  4930.  
  4931.           XTAB series_1 series_2
  4932.  
  4933.   -----------------------------
  4934.        * denotes commands that accept wildcard characters in arguments.
  4935.  
  4936.  
  4937.  
  4938.  
  4939.  
  4940.                                  75
  4941.  
  4942.  
  4943.  
  4944.  
  4945.  
  4946.  
  4947.  
  4948.  
  4949.  
  4950.                                   APPENDIX IV
  4951.                 DETAILED FEATURE LIST FOR SORITEC VERSION 1.06B
  4952.                                                               
  4953.                                                               
  4954.   1. REGRESSION TECHNIQUES                           
  4955.                                                               
  4956.   Ordinary Least Squares Regression     Advanced Single Equation Techniques   
  4957.        Linear                                Ridge regression #               
  4958.        Non-linear #                          With arbitrary diagonal matrix   
  4959.        First-order Cochrane-                   or canonical scaling #       
  4960.          Orcutt or Hildreth-Lu                                                
  4961.        Second order C-O or H-L #        Generalized  least squares #          
  4962.        Fast  regression  using  the          GLS with C-O #                 
  4963.          Cholesky Decomposition              Restricted least squares #       
  4964.        ARMA residuals #                      Theil-Goldberger mixed           
  4965.        GLS autocorrelation                     estimation #
  4966.          estimation *                        Principal components analysis  
  4967.                                              Minimax parameter estimation     
  4968.   Stepwise Regression *                                                       
  4969.        Forward or backward  methods          Probit analysis #              
  4970.        CP statistics                         Discriminant analysis * #      
  4971.        Multiple  levels for the                                             
  4972.          inclusion of variables              F Test of linear hypothesis    
  4973.                                              F  Test of non-linear            
  4974.   Exponential Smoothing Techniques             hypothesis #
  4975.        Single exponential,  Brown's          Calculate confidence intervals 
  4976.          linear & quadratic, Holt's            for non-linear functions  of 
  4977.          linear, adaptive response,            coefficients #               
  4978.          Winter's linear and                                                
  4979.          seasonal                       Regression Diagnostics              
  4980.                                              Standard errors and t-values     
  4981.   Linear trend,  S-curve and                 Sum of residuals               
  4982.      exponential growth forecasting          Sum of squared residuals         
  4983.                                              Mean absolute residual           
  4984.   Two-Stage Least Squares                    Significance of t values         
  4985.        Linear                                Beta coefficients                
  4986.        Non-linear #                          Partial R values                 
  4987.        First order C-O or H-L                F statistic and significance     
  4988.        Second order C-O or H-L #             Residual analysis                
  4989.        Fast two-stage using the              Durbin-Watson  1st,   4th  and 
  4990.          Cholesky Decomposition                12th order                     
  4991.                                              Skewness and kurtosis            
  4992.   Distributed Lag Models                     First 24 auto-correlation   
  4993.        Almon                                   coefficients and  Box-Pierce   
  4994.        Shiller                                 Q statistics                   
  4995.        Ability to recover and forecast       ANOVA table for regression      
  4996.          with the unscrambled equation       Elasticities  of  the            
  4997.        Almon with C-O or H-L                   coefficients 
  4998.                                       
  4999.  
  5000.  
  5001.  
  5002.  
  5003.  
  5004.  
  5005.                                  76
  5006.  
  5007.  
  5008.  
  5009.  
  5010.  
  5011.  
  5012.  
  5013.  
  5014.                                       
  5015.        Distribution tests on Residuals  3. FORECASTING AND SIMULATION       
  5016.        Percentage   distribution   of                                       
  5017.          residuals   between -3 to +3   Single Equation Forecasting         
  5018.          standard deviations                 Static forecast                
  5019.                                              Dynamic forecasting            
  5020.   Procedures   allow  for  regression        Residual feedback              
  5021.     through  the   origin and  adjust        Non-linear forecasts           
  5022.     the test statistics appropriately                                       
  5023.   Statistics  adjusted correctly  for   Multiple Equation Forecasting       
  5024.     gaps in sample period                    Static simulation #            
  5025.   Significance  levels for  all  test        Dynamic simulation #           
  5026.     statistics                               Non-linear equations allowed # 
  5027.                                              Conditional expressions in     
  5028.   Interactive, table-oriented, output          equations allowed #          
  5029.     display   for  easy   review   of        Simultaneous equation          
  5030.     regression results                         capability #                 
  5031.                                                                             
  5032.   2. SYSTEMS ESTIMATION TECHNIQUES      Solution of simultaneous non-linear 
  5033.                                           equations #                       
  5034.   Zellner's Seemingly Unrelated         Automatic block-decomposition of    
  5035.     Regression                            simultaneous models #             
  5036.        Linear and non-linear #          Successive over- and under-         
  5037.        Iterative refinement of            relaxation user-selectible #    
  5038.          residual correlations (IRRC)   Easy comparison of scenarios #      
  5039.          optional #                     User control of convergence criteria
  5040.   Three-Stage Least Squares               and values #                      
  5041.        Linear and non-linear #                                              
  5042.        With IRRC #                                                          
  5043.   Full Information Maximum Likelihood   4. FINANCIAL AND ECONOMIC MEASURES  
  5044.        Linear and non-linear #                                              
  5045.        User selection of  optimization  Present value                       
  5046.          method,  stepsize  algorithm,  Internal rate of return             
  5047.          and convergence criteria  #                                        
  5048.                                         Depreciation                        
  5049.   Box-Jenkins Analysis                       Straight line, double-declining
  5050.        Autocovariance                          balance, sum of years digits,
  5051.        Autocorrelation                         ACRS and ADR schedules       
  5052.        Partial autocorrelation and      Loan amortization                   
  5053.          confidence intervals           Peak to peak interpolation          
  5054.        ARMA (p,q), and ARIMA (p,d,q)    Capital stock accumulation #        
  5055.        ARIMA with seasonal              Capital utilization #               
  5056.          differencing                   Net capital investment #            
  5057.        Multivariate distributed lags    Capital stock calculation #         
  5058.          with ARMA errors #             Calculation of economic capacity #  
  5059.        Multivariate transfer functions  Calculation of price indices #      
  5060.        Common rational coefficients   
  5061.          models #                       5. CROSS-SECTIONAL AND SURVEY       
  5062.        Linearized form models #            TECHNIQUES                       
  5063.        Gaps allowed in lag structure #                                      
  5064.        Selection of holdout or          Casewise deletion of missing values 
  5065.          backcasting #                  Frequency distributions             
  5066.        Arbitrary initial errors         Histograms                          
  5067.          allowed #                      Synopsis command                    
  5068.        Multiplicative form models #     T-Tests of grouped or paired data   
  5069.  
  5070.  
  5071.                                  77
  5072.  
  5073.  
  5074.  
  5075.  
  5076.  
  5077.  
  5078.  
  5079.  
  5080.                                                               
  5081.   Analysis of Variance                  RECODE function to convert data     
  5082.        ONEWAY and TWOWAY                  continuous   ranges into discrete 
  5083.        Any combination of fixed or        indicators                        
  5084.          random factors                                                          
  5085.        Covariates allowed               Convert periodicities between         
  5086.        Unequal number of observations     annual, monthly, quarterly,       
  5087.          allowed                          weekly, daily and undated   data  
  5088.        Diagnostic testing included        types (* for some combinations)     
  5089.        Automatic determination of the                                       
  5090.          appropriate analysis, i.e.,    Subscript ranges allowed in leads   
  5091.          1, or 2-way, with/without        and lags, e.g., X(-1 TO -6)       
  5092.          interaction terms                expands to  X(-1) X(-2)   ...X(-6)
  5093.        Frequency and histogram options    throughout the command syntax       
  5094.        Replications supported                                                 
  5095.                                         Basic Statistics                    
  5096.   Crosstabulation tables                     Mean, standard deviation, mode,
  5097.        Nesting for multi-dimensional         median, variance, skewness,    
  5098.          tables                              kurtosis, range, deciles,      
  5099.        Full set of test statistics           quartiles, coefficient of       
  5100.        Interactive "spreadsheet" mode        variation, root mean square,   
  5101.          for reviewing output                correlation, covariance        
  5102.                                              analysis, Z scores, minimum,   
  5103.   Breakdown Analysis                         maximum, casewise deletion of  
  5104.        Nested breakdowns                     missing values                  
  5105.        Histograms                                                            
  5106.        ANOVA testing                    Normalization of time series         
  5107.                                         Seasonal dummy creation             
  5108.   Non-Parametric Statistics                                                 
  5109.        Wilcoxon W+, signed rank test,   Splicing function to merge two      
  5110.          run of signs test, Mann-         versions of   the series into one 
  5111.          Whitney U test, Spearman         continuous series;   including     
  5112.          correlation, Kendall tau         simple splice, sliding weights, or
  5113.                                           regression with sliding weights * 
  5114.   Rank function for construction of                                         
  5115.     other non-  parametric tests,       Analysis of Goodness of Fit         
  5116.     e.g., non-parametric ANOVA, etc.         Runs test, chi squared         
  5117.                                              normality tests, Box-Pierce Q  
  5118.   Recovery of all intermediate results       statistics, frequency          
  5119.     for   cross-sectional procedures         distribution of residuals,      
  5120.   Most procedures support dynamic            Durbin-Watson 1st, 4th and 12th
  5121.     recoding of   continuous data to         order                          
  5122.     discrete categories                                                     
  5123.   Most procedures support selection of  DIF transformation to apply the nth 
  5124.     a subset of discrete values for an    difference operator to a series k 
  5125.     analysis                              times. #                          
  5126.                                                                             
  5127.                                         Random Number Generators            
  5128.                                              Beta, chi-squared, exponential,
  5129.   6. TIME SERIES UTILITIES AND               double exponential, F,         
  5130.        OPERATIONS                            geometric, normal, Poisson, t, 
  5131.                                              uniform                        
  5132.   Weighted/moving averages and sums     
  5133.   Time series filter                    
  5134.  
  5135.  
  5136.  
  5137.                                  78
  5138.  
  5139.  
  5140.  
  5141.  
  5142.  
  5143.  
  5144.  
  5145.  
  5146.  
  5147.   Cumulative Density Functions          8. DATABANKING CAPABILITIES         
  5148.        Normal, t, F, beta *, gamma *,                                       
  5149.        chi-squared *, run of signs      Maximum number of items in a data-  
  5150.        CDF                                base limited only by disk space.
  5151.                                         Sorted contents listing             
  5152.   Seasonal Adjustment Techniques        Databank can store data series,      
  5153.        Ratio to moving average for        equations,   vectors, matrices,   
  5154.          monthly, quarterly, or           and linked models                 
  5155.          arbitrary periodicity          Simple one word database commands to
  5156.        Census X-11 * #                    create, access, update, copy,     
  5157.                                           rename, switch,   replace, list or
  5158.   7. MATHEMATICAL FUNCTIONS AND           discard database items.           
  5159.      OPERATIONS                         Database usage identical across     
  5160.                                           mainframe, minicomputer and       
  5161.   Algebraic entry of transformations      microcomputer versions #           
  5162.   Logical operators supported                                                
  5163.   Modular arithmetic function                                                
  5164.   Sine, cosine, tangent, arc sine, arc  9. PROGRAMMING LANGUAGE             
  5165.     cosine,   arc tangent, log, log10,                                      
  5166.     sinh, cosh, tanh,   arc sinh, arc   Structured Programming Language     
  5167.     cosh, and arc tanh functions          Features                          
  5168.   Ceiling, floor, round, sign, abs,          User-defined procedures,       
  5169.     random and   inverse normal PDF          labeled/ numbered statements,  
  5170.     functions available                      global variables, local        
  5171.                                              variables, recursion allowed,  
  5172.   Substitution of missing values using       GOTO, IF/THEN/ELSE, DO loops,  
  5173.     zero, mean, interpolation or             DOT loops (over alpha index),  
  5174.     linear trend   forecast values           subscripted references allowed,
  5175.                                              external command files allowed 
  5176.   Missing values propagate as missing                                       
  5177.     in all   math operations;           Equations and transformations       
  5178.     0*MISSING propagates as 0             specified in   algebraic form     
  5179.                                                                              
  5180.   Logical operators can be specified    Wildcards allowed in most commands  
  5181.     in algebraic form, e.g., >, >=, <,  Variable subscript references, e.g.,
  5182.     <=, etc.                              X(K) (except in equations)        
  5183.   Mixed logical and arithmetic                                              
  5184.     operators allowed in expressions    Lags can be specified as negative         
  5185.                                           subscripts, e.g. X(-1) is the      
  5186.   TSP-like matrix commands                first lag                         
  5187.        Add or subtract two matrices,                                        
  5188.        transpose a matrix, matrix       Access to intermediate and final    
  5189.        orthogonalization, triangular      results using a keyword RECOVER   
  5190.        matrix inversion, matrix           command, or by item name e.g.:    
  5191.        factorization, move vector to a    RECOVER YFIT,                     
  5192.        diagonal matrix, extract           or RESID = Y-^YFIT                
  5193.        diagonal elements to a vector                                        
  5194.                                         Namelist capability using GROUP      
  5195.   Full algebraic matrix mathematics       command                           
  5196.     e.g., B=INV(TR(X)*X)*TR(X)*Y,                                           
  5197.     allows easy construction of         Subscripted references to namelist  
  5198.     complex estimators #                  elements   allowed, e.g., if GROUP
  5199.                                           GRP1 contains X1   X2 X3 X4, then 
  5200.                                           GRP1(3) is X3                     
  5201.  
  5202.  
  5203.                                  79
  5204.  
  5205.  
  5206.  
  5207.  
  5208.  
  5209.  
  5210.  
  5211.  
  5212.                                         
  5213.   LEGAL function allows the user to     12. GRAPHICS                        
  5214.     test for   missing values and                                           
  5215.     develop custom missing   value      Printer graphics and plots          
  5216.     handling routines, e.g., casewise,                                       
  5217.     mean substitution, etc.             Medium resolution screen-oriented   
  5218.                                           graphics                          
  5219.                                                                             
  5220.   10. DATA ENTRY                        DIF I/O bridge to presentation-     
  5221.                                           quality graphics programs         
  5222.   Free-field data or FORTRAN formatted                                      
  5223.     entry from disk or keyboard                                             
  5224.                                         13. GENERAL FEATURES                 
  5225.   DIF file I/O capabilities                                                  
  5226.   TROLL print format input *            Batch and interactive modes         
  5227.   DBase II I/O supported *                available                         
  5228.                                                                              
  5229.   Can be interfaced with mainframe      Item names may be thirty-two        
  5230.     databases, e.g., Citibase,            characters long                   
  5231.     Predicasts, IMF, OECD, etc.                                             
  5232.                                         Equations may be recovered and      
  5233.   Custom database interfaces and          printed                           
  5234.     conversions to IBM  PC/XT format                                        
  5235.     available on a   contract basis     Full function command line editor     
  5236.                                           allows the  user to edit and rerun
  5237.   Commercial databases available on       one or more previous commands     
  5238.     diskettes   for the PC and other                                        
  5239.     non-mainframes (e.g.,   Citibase,   User access to differentiation      
  5240.     etc.)                                 routine                           
  5241.                                         Input and Output journaling         
  5242.   Data can be downloaded in SORITEC     SORT command                        
  5243.     Alternate   Load (.SAL) file        Global control over plots,          
  5244.     format from major data   vendors      statistics, etc.                  
  5245.     (DRI, WEFA, CITIBASE Connection)                                               
  5246.                                         14.  PC VERSION SPECIFICS           
  5247.   11. REPORT-WRITING CAPABILITIES                                               
  5248.                                         User may exit to the operating      
  5249.   Simplified report layout with           system, run   other programs and  
  5250.     complete user   control of format,    return to SORITEC session without 
  5251.     titles, contents,   footnotes,        losing any work                   
  5252.     labels and currency symbols #                                           
  5253.                                         DOS commands can be executed inside 
  5254.   Automatic row/column subtotals,         SORITEC, allowing editors,        
  5255.     grand   totals, averages,             communications programs, etc. to  
  5256.     products, differences,   ratios       be used in SORITEC procedures     
  5257.     and percentages #                                                       
  5258.                                         Supports DOS redirection and use of 
  5259.   Automatic footnoting #                  fully qualified file names for    
  5260.   Store and recall report formats #       access to subdirectories          
  5261.                                         ____________________________________
  5262.   Complex reports generated by a        # Indicates features available only 
  5263.     single command #                      in full SORITEC.  All other       
  5264.                                           features are in SORITEC.       
  5265.   Specification of asterisks or blanks
  5266.     for small or missing values #       * Available second quarter 1985. 
  5267.  
  5268.  
  5269.                                  80
  5270.  
  5271.  
  5272.  
  5273.  
  5274.  
  5275.  
  5276.  
  5277.  
  5278.  
  5279.                              Random Access Memory
  5280.                             Required    Recommended
  5281.                    SORITEC     512K          640K
  5282.  
  5283.   8087  high-speed math chip required for SORITEC Version 1.06B.
  5284.  
  5285.   Number of Diskettes: SORITEC - 5 (1.7 Megabytes) 
  5286.  
  5287.  
  5288.  
  5289.  
  5290.  
  5291.  
  5292.  
  5293.  
  5294.  
  5295.  
  5296.  
  5297.  
  5298.  
  5299.  
  5300.  
  5301.  
  5302.  
  5303.  
  5304.  
  5305.  
  5306.  
  5307.  
  5308.  
  5309.  
  5310.  
  5311.  
  5312.  
  5313.  
  5314.  
  5315.  
  5316.  
  5317.  
  5318.  
  5319.  
  5320.  
  5321.  
  5322.  
  5323.  
  5324.  
  5325.  
  5326.  
  5327.  
  5328.  
  5329.  
  5330.  
  5331.                                  81
  5332.  
  5333.  
  5334.  
  5335.  
  5336.  
  5337.  
  5338.  
  5339.  
  5340.                                      INDEX
  5341.  
  5342.                                        A
  5343.  
  5344.                   ACCESS ................................. 37
  5345.                   Actual versus fitted.................... 64
  5346.                   Alpha Looping........................... 43
  5347.                   AMORT................................... 53
  5348.                   ANOVA table............................. 64
  5349.                   Arithmetic Mean......................... 50
  5350.                   Arithmetic Sum.......................... 50
  5351.                   Autocorrelation techniques.............. 58
  5352.        
  5353.                                        B
  5354.  
  5355.                   Batch Processing........................ 10
  5356.                   Beta coefficients....................... 64
  5357.        
  5358.                                        C
  5359.  
  5360.                   Cochrane-Orcutt ........................ 58
  5361.                   COMPUTE ................................ 14,16
  5362.                   Compute Moving Average.................. 49
  5363.                   Compute Moving Sum...................... 49
  5364.                   Conditional branching................... 43
  5365.                   CONSTANT................................ 13
  5366.                   Constants............................... 13
  5367.                   CONTENTS................................ 40
  5368.                   CONTINUE................................ 43
  5369.                   CONVERT................................. 46,47
  5370.                   Converting time-series from one 
  5371.                            periodicity to another......... 45,46
  5372.                   COPY ................................... 38
  5373.                   CORC ................................... 58
  5374.                   CORREL ................................. 49
  5375.                   Correlation matrix...................... 49,64
  5376.                   Correlation Matrix Calculation.......... 49
  5377.                   COVA ................................... 49
  5378.                   Covariance matrix....................... 49
  5379.                   Covariance Matrix Calculation........... 49
  5380.                   CREATE.................................. 37
  5381.                   Cross-sectional data.................... 55
  5382.                   Crosstabulation Analysis................ 56
  5383.        
  5384.                                        D
  5385.  
  5386.                   Data Interchange Format (DIF) Files..... 28
  5387.                   Data types.............................. 15
  5388.                   Databanks............................... 37
  5389.                   DIF File Input.......................... 28
  5390.                   DIF File Output......................... 30
  5391.                   DISCARD ................................ 40
  5392.                   Distribution of the residuals........... 63
  5393.                   DO ..................................... 41
  5394.                   DOT..................................... 43,44
  5395.  
  5396.  
  5397.                                  82
  5398.  
  5399.  
  5400.  
  5401.  
  5402.  
  5403.  
  5404.  
  5405.  
  5406.                   DUMMY .................................. 45
  5407.                   Dummy variables......................... 45
  5408.        
  5409.                                        E
  5410.  
  5411.                   Elasticities............................ 64
  5412.                   END..................................... 10,41
  5413.                   ENDDOT.................................. 44
  5414.                   EQUATION ............................... 14
  5415.                   Equations............................... 14
  5416.                   EXECUTE ................................ 11
  5417.                   Executing SAC Files..................... 10
  5418.                   EXOGENOUS .............................. 59
  5419.                   Exporting data.......................... 26
  5420.        
  5421.                                        F
  5422.  
  5423.                   FILL.................................... 19,33
  5424.                   Financial functions..................... 51
  5425.                   Fitted equation......................... 59
  5426.                   FLAGS................................... 22
  5427.                   FORECAST ............................... 60
  5428.                   Forecasting single equation models...... 59
  5429.                   FOREQ................................... 60
  5430.                   FORGET.................................. 24
  5431.                   FORMAT.................................. 31
  5432.                   Formatted input and output.............. 31
  5433.                   FORTRAN formatted input................. 31
  5434.                   FORTRAN formatted output................ 32
  5435.  
  5436.                                        G
  5437.  
  5438.                   Global options.......................... 22
  5439.                   GO TO (GOTO)............................ 42
  5440.                   Graphical Display....................... 34
  5441.                   Group expansion......................... 14
  5442.                   GROUP .................................. 14
  5443.        
  5444.                                        H
  5445.  
  5446.                   HELLO...................................  9
  5447.                   Hildreth-Lu............................. 58
  5448.                   HILU.................................... 58
  5449.  
  5450.                                        I
  5451.  
  5452.                   IF/THEN/ELSE............................ 43
  5453.                   Illegal transformations................. 17
  5454.                   Imputation of Missing Values............ 21
  5455.                   Importing data.......................... 26
  5456.                   IMPUTE ................................. 21
  5457.                   Input Journal Files..................... 11
  5458.                   Interactive mode........................ 62
  5459.                   Interactive Processing..................  9
  5460.                   Interactive regression display.......... 62
  5461.  
  5462.  
  5463.                                  83
  5464.  
  5465.  
  5466.  
  5467.  
  5468.  
  5469.  
  5470.  
  5471.  
  5472.                   Invoking SORITEC Sampler................  9
  5473.                   Internal rate of return................. 51
  5474.                   IRR..................................... 51
  5475.  
  5476.                                        J
  5477.  
  5478.                   JOB..................................... 10
  5479.  
  5480.                                        K
  5481.  
  5482.                   KEEP ................................... 39
  5483.                   Keyboard Entry.......................... 33
  5484.  
  5485.                                        L
  5486.  
  5487.                   LEGAL................................... 20
  5488.                   Line printer-style graphics............. 34
  5489.                   Loan amortization....................... 53
  5490.  
  5491.                                        M
  5492.  
  5493.                   MA ..................................... 49
  5494.                   Mathematical functions.................. 16
  5495.                   Matrix.................................. 13
  5496.                   MAX..................................... 47,48
  5497.                   MAXERR ................................. 25
  5498.                   Maximum error limit..................... 25
  5499.                   Maximum Function........................ 47
  5500.                   Maximum value of a series............... 47
  5501.                   Mean and standard deviation of 
  5502.                         the independent variables......... 64
  5503.                   MEAN ................................... 50
  5504.                   MIN .................................... 48
  5505.                   Minimum Function........................ 48
  5506.                   Minimum value of a data series.......... 48
  5507.                   MISSING................................. 19,20
  5508.                   Missing Data Handling................... 19
  5509.                   Missing Value Symbol Declaration........ 20
  5510.                   Missing Value Logical Function.......... 20
  5511.                   MOD .................................... 48
  5512.                   Modifiers, in the CONVERT command....... 47
  5513.                   Modular division........................ 45,48
  5514.                   Moving average.......................... 49
  5515.                   Moving sum.............................. 49
  5516.                   MSUM ................................... 49
  5517.  
  5518.                                        N
  5519.  
  5520.                   Namelist................................ 14
  5521.                   Net present value....................... 52
  5522.                   Non-linear estimation................... 14
  5523.                   Null (Continuation) Statement........... 43
  5524.                   Numeric Looping......................... 41
  5525.  
  5526.  
  5527.  
  5528.  
  5529.                                  84
  5530.  
  5531.  
  5532.  
  5533.  
  5534.  
  5535.  
  5536.  
  5537.  
  5538.                                        O
  5539.  
  5540.                   OFFLIST................................. 25
  5541.                   ON ANOVA................................ 64
  5542.                   ON BETA................................. 64
  5543.                   ON CCOR................................. 64
  5544.                   ON CRT ................................. 57
  5545.                   ON GROUP................................ 14
  5546.                   ON PLOT................................. 64
  5547.                   ON REVISE............................... 19
  5548.                   ON STATS................................ 64
  5549.                   ON VCOV................................. 64
  5550.                   ONLIST.................................. 25
  5551.                   Options................................. 22
  5552.                   Ordinary least squares.................. 57
  5553.                   ORIGIN.................................. 57
  5554.                   Output of Data to the Terminal.......... 34
  5555.  
  5556.  
  5557.                                        P
  5558.  
  5559.                   PARAMETER .............................. 13
  5560.                   Parameters.............................. 13
  5561.                   Partial correlation coefficients........ 64
  5562.                   Periodic dummy variable................. 45
  5563.                   PLOT ................................... 34
  5564.                   Prefix.................................. 44
  5565.                   Present value........................... 52
  5566.                   PRINT .................................. 34
  5567.                   PROCEDURE............................... 41
  5568.                   Programming language.................... 41
  5569.                   PUNCH .................................. 27
  5570.                   PUNCHDIF................................ 30
  5571.                   PURGE .................................. 38
  5572.                   PV ..................................... 52
  5573.  
  5574.                                        Q
  5575.  
  5576.                   QUIT.................................... 10
  5577.  
  5578.                                        R
  5579.  
  5580.                   READ.................................... 27,31,32
  5581.                   READDIF................................. 28
  5582.                   Recode a Variable....................... 46
  5583.                   RECODE.................................. 46
  5584.                   RECOVER................................. 22
  5585.                   REGRESS ................................ 57
  5586.                   Regression summary table................ 63
  5587.                   RENAME ................................. 39
  5588.                   REPLACE................................. 39
  5589.                   Residual summary table.................. 63
  5590.                   RETURN.................................. 38
  5591.                   REVISE.................................. 18
  5592.                   Revising Data .......................... 18
  5593.  
  5594.  
  5595.                                  85
  5596.  
  5597.  
  5598.  
  5599.  
  5600.  
  5601.  
  5602.  
  5603.  
  5604.                   RMS .................................... 50
  5605.                   Root Mean Square........................ 50
  5606.  
  5607.                                        S
  5608.  
  5609.                   SAL files............................... 26
  5610.                   SAL File Input.......................... 27
  5611.                   SAL File Output......................... 27
  5612.                   SCAN.................................... 25
  5613.                   SCATTER ................................ 36
  5614.                   Seasonal Dummies........................ 45
  5615.                   Selection menu.......................... 62
  5616.                   Serial autocorrelation.................. 58
  5617.                   Series of minimum values................ 48
  5618.                   Single-equation estimation techniques... 57
  5619.                   SORITEC.................................  6
  5620.                   SORITEC DataBank Files.................. 36,37
  5621.                   Special Symbols......................... 12
  5622.                   SSR .................................... 50
  5623.                   Standardized residuals.................. 64
  5624.                   Statistical Operations.................. 49,50
  5625.                   Sum of Squared Residuals................ 50
  5626.                   SUM .................................... 50
  5627.                   SWITCH ................................. 40
  5628.                   Symbol table............................ 23
  5629.                   SYMBOLS................................. 23
  5630.                   SYNOPSIS................................ 55
  5631.  
  5632.  
  5633.                                        T
  5634.  
  5635.                   Tabular Display......................... 34
  5636.                   Time trend dummy series................. 45
  5637.                   TIME ................................... 45
  5638.                   Time-series variables................... 13
  5639.                   TITLE .................................. 25
  5640.                   Transformations......................... 16
  5641.                   Transforming continuous into 
  5642.                        discrete variables................. 45
  5643.                   Two-stage least squares (2SLS) ......... 59
  5644.                   TWOSTAGE ............................... 59
  5645.  
  5646.                                        U
  5647.  
  5648.                   Unconditional Branching................. 42
  5649.                   Uniform random numbers.................. 48
  5650.                   USE..................................... 15
  5651.                   USEIF .................................. 15
  5652.  
  5653.                                        V
  5654.  
  5655.                   Variable Names.......................... 12
  5656.                   Variable Types.......................... 13
  5657.                   Variance-covariance matrix.............. 64
  5658.                   Vector.................................. 13
  5659.  
  5660.  
  5661.                                  86
  5662.  
  5663.  
  5664.  
  5665.  
  5666.  
  5667.  
  5668.  
  5669.  
  5670.                   VECTOR ................................. 13
  5671.  
  5672.  
  5673.                                        W
  5674.  
  5675.                   WIDTH .................................. 24
  5676.                   Wildcards............................... 21
  5677.                   WRITE................................... 32,33
  5678.  
  5679.  
  5680.                                        X
  5681.  
  5682.                   XTAB ................................... 56
  5683.  
  5684.  
  5685.  
  5686.  
  5687.  
  5688.  
  5689.  
  5690.  
  5691.  
  5692.  
  5693.  
  5694.  
  5695.  
  5696.  
  5697.  
  5698.  
  5699.  
  5700.  
  5701.  
  5702.  
  5703.  
  5704.  
  5705.  
  5706.  
  5707.  
  5708.  
  5709.  
  5710.  
  5711.  
  5712.  
  5713.  
  5714.  
  5715.  
  5716.  
  5717.  
  5718.  
  5719.  
  5720.  
  5721.  
  5722.  
  5723.  
  5724.  
  5725.  
  5726.  
  5727.                                  87
  5728.  
  5729.  
  5730.  
  5731.  
  5732.  
  5733.  
  5734.  
  5735.  
  5736.                        SORITEC INFORMATION REQUEST FORM
  5737.  
  5738.   Yes,  I'd  like to receive more information about Sorites Group's  Econometric 
  5739.   software products.
  5740.  
  5741.             ( ) Please  send me information about  SORITEC  Version 
  5742.                 1.06B.
  5743.  
  5744.             ( ) Please  enter  my  name on SGI's  mailing  list  to 
  5745.                 receive information about new SORITEC releases.
  5746.  
  5747.             ( ) Send me the SORITEC Reference Manual.   Enclosed is 
  5748.                 (U.S.)$25.00  to  cover the cost of the manual  and 
  5749.                 shipping.
  5750.  
  5751.             ( ) Send  me  the  latest release of  SORITEC  Sampler, 
  5752.                 including  a  bound  copy of  the  SORITEC  Sampler 
  5753.                 Reference   Manual  and  a  copy  of  the   SORITEC 
  5754.                 Reference  Manual.   Enclosed  is  (U.S.)$50.00  to 
  5755.                 cover the cost of materials and shipping.
  5756.  
  5757.   Please print or type your name and address in the space below:
  5758.  
  5759.             Name: _____________________________________
  5760.  
  5761.             Affiliation: ______________________________
  5762.  
  5763.             Address: __________________________________
  5764.  
  5765.             ___________________________________________
  5766.  
  5767.             City:________________State: _______________
  5768.  
  5769.             Country: ____________Postal Code: _________
  5770.  
  5771.   Organizational affiliation:   ( ) Commercial
  5772.                                 ( ) Government
  5773.                                 ( ) Academic
  5774.                                 ( ) Other  ______________________
  5775.  
  5776.   What type of computer do you own or use? ______________________
  5777.  
  5778.   How many computers are at your address?  _______
  5779.  
  5780.   Complete and Mail to:         The Sorites Group, Inc.
  5781.                                 P.O. Box 2939
  5782.                                 Springfield, VA  22152
  5783.  
  5784.  
  5785.  
  5786.  
  5787.  
  5788.  
  5789.  
  5790.  
  5791.                                  88
  5792.  
  5793.  
  5794.  
  5795.  
  5796.  
  5797.